mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
macOS build support
This commit is contained in:
@@ -126,7 +126,6 @@ enum EGLMTexFlags
|
||||
kGLMTexMultisampled = 0x40, // has an RBO backing it. Cannot combine with Mipped, MippedAuto. One slice maximum, only targeting GL_TEXTURE_2D.
|
||||
// actually not 100% positive on the mipmapping, the RBO itself can't be mipped, but the resulting texture could
|
||||
// have mipmaps generated.
|
||||
kGLMTexDynamic = 0x80
|
||||
};
|
||||
|
||||
//===============================================================================
|
||||
@@ -205,7 +204,6 @@ struct GLMTexLockParams
|
||||
// tells GLM to force re-read of the texels back from GL
|
||||
// i.e. "I know I stepped on those texels with a draw or blit - the GLM copy is stale"
|
||||
bool m_readback;
|
||||
bool m_readonly;
|
||||
};
|
||||
|
||||
struct GLMTexLockDesc
|
||||
@@ -487,7 +485,7 @@ protected:
|
||||
int CalcSliceIndex( int face, int mip );
|
||||
void CalcTexelDataOffsetAndStrides( int sliceIndex, int x, int y, int z, int *offsetOut, int *yStrideOut, int *zStrideOut );
|
||||
|
||||
GLubyte *ReadTexels( GLMTexLockDesc *desc, bool readWholeSlice=true, bool readOnly=false );
|
||||
void ReadTexels( GLMTexLockDesc *desc, bool readWholeSlice=true );
|
||||
void WriteTexels( GLMTexLockDesc *desc, bool writeWholeSlice=true, bool noDataWrite=false );
|
||||
// last param lets us send NULL data ptr (only legal with uncompressed formats, beware)
|
||||
// this helps out ResetSRGB.
|
||||
@@ -507,8 +505,6 @@ protected:
|
||||
// noWrite means send NULL for texel source addresses instead of actual data - ideal for RT's
|
||||
|
||||
GLuint m_texName; // name of this texture in the context
|
||||
GLuint m_pbo;
|
||||
GLubyte *m_mapped;
|
||||
GLenum m_texGLTarget;
|
||||
uint m_nSamplerType; // SAMPLER_2D, etc.
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ GL_FUNC_VOID(OpenGL,true,glDrawArrays,(GLenum a,GLint b,GLsizei c),(a,b,c))
|
||||
GL_FUNC_VOID(OpenGL,true,glDrawBuffer,(GLenum a),(a))
|
||||
GL_FUNC_VOID(OpenGL,true,glDrawBuffers,(GLsizei a,const GLenum *b),(a,b))
|
||||
GL_FUNC_VOID(OpenGL,true,glDrawRangeElements,(GLenum a,GLuint b,GLuint c,GLsizei d,GLenum e,const GLvoid *f),(a,b,c,d,e,f))
|
||||
#ifndef OSX // 10.6/GL 2.1 compatability
|
||||
#if 1 //ifndef OSX // 10.6/GL 2.1 compatability
|
||||
GL_FUNC_VOID(OpenGL,true,glDrawRangeElementsBaseVertex,(GLenum a,GLuint b,GLuint c,GLsizei d,GLenum e,const GLvoid *f, GLenum g),(a,b,c,d,e,f,g))
|
||||
#endif
|
||||
GL_FUNC_VOID(OpenGL,true,glEnable,(GLenum a),(a))
|
||||
|
||||
@@ -1451,7 +1451,7 @@ class GLMContext
|
||||
void FlushDrawStatesNoShaders();
|
||||
|
||||
// drawing
|
||||
#ifndef OSX
|
||||
#if 1 //ifndef OSX
|
||||
FORCEINLINE void DrawRangeElements( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, uint baseVertex, CGLMBuffer *pIndexBuf );
|
||||
void DrawRangeElementsNonInline( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, uint baseVertex, CGLMBuffer *pIndexBuf );
|
||||
#else
|
||||
@@ -1911,7 +1911,7 @@ class GLMContext
|
||||
CTSQueue<CGLMTex*> m_DeleteTextureQueue;
|
||||
};
|
||||
|
||||
#ifndef OSX
|
||||
#if 1 //ifndef OSX
|
||||
|
||||
FORCEINLINE void GLMContext::DrawRangeElements( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, uint baseVertex, CGLMBuffer *pIndexBuf )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user