Skip to content

Instantly share code, notes, and snippets.

@gokr
Created July 12, 2020 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gokr/08418f1e4ab98198d793074a68c0fed6 to your computer and use it in GitHub Desktop.
Save gokr/08418f1e4ab98198d793074a68c0fed6 to your computer and use it in GitHub Desktop.
Compilation error orxDisplay.c
==== Building orxLIB (release64) ====
orxPlugin_EmbeddedList.cpp
orxHashTable.c
orxTree.c
orxLinkList.c
orxString.c
orxPhysics.c
orxBody.c
orxScreenshot.c
orxDisplay.c
orxFont.c
orxGraphic.c
orxText.c
orxTexture.c
orxSound.c
orxSoundSystem.c
orxSoundPointer.c
orxAnimSet.c
orxAnimPointer.c
orxAnim.c
orxPlugin.c
orxTimeLine.c
orxObject.c
orxSpawner.c
orxFX.c
orxFrame.c
orxStructure.c
orxFXPointer.c
orxBank.c
orxMemory.c
orxProfiler.c
orxFPS.c
orxDebug.c
orxType.c
orxModule.c
orxParam.c
orxMath.c
orxVector.c
orxCamera.c
orxShaderPointer.c
orxViewport.c
orxRender.c
orxShader.c
orxKeyboard.c
orxFile.c
../../../src/object/orxSpawner.c: In function 'orxSpawner_EventHandler':
../../../src/object/orxSpawner.c:698:25: error: 'fRotation' may be used uninitialized in this function [-Werror=maybe-uninitialized]
orxFLOAT fRotation, fCombinedRotation;
^~~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [orxLIB.make:505: obj/x64/Release/orxLIB/orxSpawner.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ../../../src/plugin/orxPlugin_EmbeddedList.cpp:68:
../../../include/../plugins/Display/GLFW/orxDisplay.c:375:3: error: 'GLdouble' does not name a type; did you mean 'double'?
GLdouble dLastOrthoRight, dLastOrthoBottom;
^~~~~~~~
double
../../../include/../plugins/Display/GLFW/orxDisplay.c: In function 'void orxDisplay_GLFW_InitExtensions()':
../../../include/../plugins/Display/GLFW/orxDisplay.c:1241:87: error: 'fShaderVersion' was not declared in this scope
if((orxString_ToFloat((const orxSTRING)glGetString(GL_SHADING_LANGUAGE_VERSION), &fShaderVersion, orxNULL) != orxSTATUS_FAILURE) && (fShaderVersion + orxMATH_KF_EPSILON >= orx2F(1.1f)))
^~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:1241:87: note: suggested alternative: 'glfwGetVersion'
if((orxString_ToFloat((const orxSTRING)glGetString(GL_SHADING_LANGUAGE_VERSION), &fShaderVersion, orxNULL) != orxSTATUS_FAILURE) && (fShaderVersion + orxMATH_KF_EPSILON >= orx2F(1.1f)))
^~~~~~~~~~~~~~
glfwGetVersion
../../../include/../plugins/Display/GLFW/orxDisplay.c: In function 'orxSTATUS orxDisplay_GLFW_CompileShader(orxDISPLAY_SHADER*)':
../../../include/../plugins/Display/GLFW/orxDisplay.c:2000:46: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
glShaderSourceARB(hVertexShader, 1, (const GLcharARB **)&szVertexShaderSource, NULL);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:2000:40: error: expected primary-expression before 'const'
glShaderSourceARB(hVertexShader, 1, (const GLcharARB **)&szVertexShaderSource, NULL);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:2000:40: error: expected ')' before 'const'
glShaderSourceARB(hVertexShader, 1, (const GLcharARB **)&szVertexShaderSource, NULL);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:2002:48: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
glShaderSourceARB(hFragmentShader, 1, (const GLcharARB **)&(_pstShader->zCode), NULL);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:2002:42: error: expected primary-expression before 'const'
glShaderSourceARB(hFragmentShader, 1, (const GLcharARB **)&(_pstShader->zCode), NULL);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:2002:42: error: expected ')' before 'const'
glShaderSourceARB(hFragmentShader, 1, (const GLcharARB **)&(_pstShader->zCode), NULL);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:2064:64: error: 'GLcharARB' was not declared in this scope
glGetInfoLogARB(hProgram, sizeof(acBuffer) - 1, NULL, (GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:2064:64: note: suggested alternative: 'GLchar'
glGetInfoLogARB(hProgram, sizeof(acBuffer) - 1, NULL, (GLcharARB *)acBuffer);
^~~~~~~~~
GLchar
../../../include/../plugins/Display/GLFW/orxDisplay.c:2064:75: error: expected primary-expression before ')' token
glGetInfoLogARB(hProgram, sizeof(acBuffer) - 1, NULL, (GLcharARB *)acBuffer);
^
../../../include/../plugins/Display/GLFW/orxDisplay.c:2081:69: error: 'GLcharARB' was not declared in this scope
glGetInfoLogARB(hFragmentShader, sizeof(acBuffer) - 1, NULL, (GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:2081:69: note: suggested alternative: 'GLchar'
glGetInfoLogARB(hFragmentShader, sizeof(acBuffer) - 1, NULL, (GLcharARB *)acBuffer);
^~~~~~~~~
GLchar
../../../include/../plugins/Display/GLFW/orxDisplay.c:2081:80: error: expected primary-expression before ')' token
glGetInfoLogARB(hFragmentShader, sizeof(acBuffer) - 1, NULL, (GLcharARB *)acBuffer);
^
../../../include/../plugins/Display/GLFW/orxDisplay.c:2102:65: error: 'GLcharARB' was not declared in this scope
glGetInfoLogARB(hVertexShader, sizeof(acBuffer) - 1, NULL, (GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:2102:65: note: suggested alternative: 'GLchar'
glGetInfoLogARB(hVertexShader, sizeof(acBuffer) - 1, NULL, (GLcharARB *)acBuffer);
^~~~~~~~~
GLchar
../../../include/../plugins/Display/GLFW/orxDisplay.c:2102:76: error: expected primary-expression before ')' token
glGetInfoLogARB(hVertexShader, sizeof(acBuffer) - 1, NULL, (GLcharARB *)acBuffer);
^
../../../include/../plugins/Display/GLFW/orxDisplay.c:1977:26: error: unused variable 'szVertexShaderSource' [-Werror=unused-variable]
static const orxSTRING szVertexShaderSource =
^~~~~~~~~~~~~~~~~~~~
In file included from ../../../src/plugin/orxPlugin_EmbeddedList.cpp:68:
../../../include/../plugins/Display/GLFW/orxDisplay.c: In function 'orxSTATUS orxDisplay_GLFW_DrawMesh(const orxDISPLAY_MESH*, const orxBITMAP*, orxDISPLAY_SMOOTHING, orxDISPLAY_BLEND_MODE)':
../../../include/../plugins/Display/GLFW/orxDisplay.c:3216:5: error: 'glVertexPointer' was not declared in this scope
glVertexPointer(2, GL_FLOAT, sizeof(orxDISPLAY_VERTEX), &(_pstMesh->astVertexList[0].fX));
^~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:3216:5: note: suggested alternative: 'glVertexAttribPointer'
glVertexPointer(2, GL_FLOAT, sizeof(orxDISPLAY_VERTEX), &(_pstMesh->astVertexList[0].fX));
^~~~~~~~~~~~~~~
glVertexAttribPointer
../../../include/../plugins/Display/GLFW/orxDisplay.c:3218:5: error: 'glTexCoordPointer' was not declared in this scope
glTexCoordPointer(2, GL_FLOAT, sizeof(orxDISPLAY_VERTEX), &(_pstMesh->astVertexList[0].fU));
^~~~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:3218:5: note: suggested alternative: 'glGetBufferPointerv'
glTexCoordPointer(2, GL_FLOAT, sizeof(orxDISPLAY_VERTEX), &(_pstMesh->astVertexList[0].fU));
^~~~~~~~~~~~~~~~~
glGetBufferPointerv
../../../include/../plugins/Display/GLFW/orxDisplay.c:3220:5: error: 'glColorPointer' was not declared in this scope
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(orxDISPLAY_VERTEX), &(_pstMesh->astVertexList[0].stRGBA));
^~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:3220:5: note: suggested alternative: 'glColorMask'
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(orxDISPLAY_VERTEX), &(_pstMesh->astVertexList[0].stRGBA));
^~~~~~~~~~~~~~
glColorMask
../../../include/../plugins/Display/GLFW/orxDisplay.c: In function 'orxSTATUS orxDisplay_GLFW_GetBitmapData(const orxBITMAP*, orxU8*, orxU32)':
../../../include/../plugins/Display/GLFW/orxDisplay.c:3708:9: error: 'glGetTexImage' was not declared in this scope
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, pu8ImageBuffer);
^~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:3708:9: note: suggested alternative: 'glTexImage3D'
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, pu8ImageBuffer);
^~~~~~~~~~~~~
glTexImage3D
../../../include/../plugins/Display/GLFW/orxDisplay.c:3722:9: error: 'glGetTexImage' was not declared in this scope
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, pu8ImageBuffer);
^~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:3722:9: note: suggested alternative: 'glTexImage3D'
glGetTexImage(GL_TEXTURE_2D, 0, GL_RGBA, GL_UNSIGNED_BYTE, pu8ImageBuffer);
^~~~~~~~~~~~~
glTexImage3D
../../../include/../plugins/Display/GLFW/orxDisplay.c: In function 'orxSTATUS orxDisplay_GLFW_SetDestinationBitmaps(orxBITMAP**, orxU32)':
../../../include/../plugins/Display/GLFW/orxDisplay.c:4134:5: error: 'GLdouble' was not declared in this scope
GLdouble dOrthoRight, dOrthoBottom;
^~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4134:5: note: suggested alternative: 'double'
GLdouble dOrthoRight, dOrthoBottom;
^~~~~~~~
double
../../../include/../plugins/Display/GLFW/orxDisplay.c:4145:7: error: 'dOrthoRight' was not declared in this scope
dOrthoRight = (GLdouble)sstDisplay.apstDestinationBitmapList[0]->fWidth;
^~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4146:7: error: 'dOrthoBottom' was not declared in this scope
dOrthoBottom = (GLdouble)sstDisplay.apstDestinationBitmapList[0]->fHeight;
^~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4155:7: error: 'dOrthoRight' was not declared in this scope
dOrthoRight = (GLdouble)sstDisplay.apstDestinationBitmapList[0]->fWidth;
^~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4156:7: error: 'dOrthoBottom' was not declared in this scope
dOrthoBottom = (GLdouble)-sstDisplay.apstDestinationBitmapList[0]->fHeight;
^~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4177:9: error: 'dOrthoRight' was not declared in this scope
if((dOrthoRight != sstDisplay.dLastOrthoRight)
^~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4177:35: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoRight'
if((dOrthoRight != sstDisplay.dLastOrthoRight)
^~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4178:9: error: 'dOrthoBottom' was not declared in this scope
|| (dOrthoBottom != sstDisplay.dLastOrthoBottom))
^~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4178:36: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoBottom'
|| (dOrthoBottom != sstDisplay.dLastOrthoBottom))
^~~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4182:20: error: 'GL_PROJECTION' was not declared in this scope
glMatrixMode(GL_PROJECTION);
^~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4182:20: note: suggested alternative: 'AL_POSITION'
glMatrixMode(GL_PROJECTION);
^~~~~~~~~~~~~
AL_POSITION
../../../include/../plugins/Display/GLFW/orxDisplay.c:4182:7: error: 'glMatrixMode' was not declared in this scope
glMatrixMode(GL_PROJECTION);
^~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4184:7: error: 'glLoadIdentity' was not declared in this scope
glLoadIdentity();
^~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4186:18: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoRight'
sstDisplay.dLastOrthoRight = dOrthoRight;
^~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4187:18: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoBottom'
sstDisplay.dLastOrthoBottom = dOrthoBottom;
^~~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4189:9: error: 'glOrtho' was not declared in this scope
? glOrtho(0.0f, dOrthoRight, dOrthoBottom, 0.0f, -1.0f, 1.0f)
^~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4192:20: error: 'GL_MODELVIEW' was not declared in this scope
glMatrixMode(GL_MODELVIEW);
^~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:4192:20: note: suggested alternative: 'GL_NEVER'
glMatrixMode(GL_MODELVIEW);
^~~~~~~~~~~~
GL_NEVER
../../../include/../plugins/Display/GLFW/orxDisplay.c: In function 'orxSTATUS orxDisplay_GLFW_SetVideoMode(const orxDISPLAY_VIDEO_MODE*)':
../../../include/../plugins/Display/GLFW/orxDisplay.c:5141:17: error: 'GL_LIGHTING' was not declared in this scope
glDisable(GL_LIGHTING);
^~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5141:17: note: suggested alternative: 'GL_HIGH_INT'
glDisable(GL_LIGHTING);
^~~~~~~~~~~
GL_HIGH_INT
../../../include/../plugins/Display/GLFW/orxDisplay.c:5143:17: error: 'GL_FOG' was not declared in this scope
glDisable(GL_FOG);
^~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5143:17: note: suggested alternative: 'GL_RG'
glDisable(GL_FOG);
^~~~~~
GL_RG
../../../include/../plugins/Display/GLFW/orxDisplay.c:5149:17: error: 'GL_ALPHA_TEST' was not declared in this scope
glDisable(GL_ALPHA_TEST);
^~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5149:17: note: suggested alternative: 'GL_ALPHA_BITS'
glDisable(GL_ALPHA_TEST);
^~~~~~~~~~~~~
GL_ALPHA_BITS
../../../include/../plugins/Display/GLFW/orxDisplay.c:5164:9: error: 'glClearDepth' was not declared in this scope
glClearDepth(1.0f);
^~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5164:9: note: suggested alternative: 'glClearDepthf'
glClearDepth(1.0f);
^~~~~~~~~~~~
glClearDepthf
../../../include/../plugins/Display/GLFW/orxDisplay.c:5290:18: error: 'GL_PROJECTION' was not declared in this scope
glMatrixMode(GL_PROJECTION);
^~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5290:18: note: suggested alternative: 'AL_POSITION'
glMatrixMode(GL_PROJECTION);
^~~~~~~~~~~~~
AL_POSITION
../../../include/../plugins/Display/GLFW/orxDisplay.c:5290:5: error: 'glMatrixMode' was not declared in this scope
glMatrixMode(GL_PROJECTION);
^~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5292:5: error: 'glLoadIdentity' was not declared in this scope
glLoadIdentity();
^~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5294:16: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoRight'
sstDisplay.dLastOrthoRight = (GLdouble)(sstDisplay.apstDestinationBitmapList[0] != orxNULL) ? sstDisplay.apstDestinationBitmapList[0]->fWidth : sstDisplay.pstScreen->fWidth;
^~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5294:36: error: 'GLdouble' was not declared in this scope
sstDisplay.dLastOrthoRight = (GLdouble)(sstDisplay.apstDestinationBitmapList[0] != orxNULL) ? sstDisplay.apstDestinationBitmapList[0]->fWidth : sstDisplay.pstScreen->fWidth;
^~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5294:36: note: suggested alternative: 'double'
sstDisplay.dLastOrthoRight = (GLdouble)(sstDisplay.apstDestinationBitmapList[0] != orxNULL) ? sstDisplay.apstDestinationBitmapList[0]->fWidth : sstDisplay.pstScreen->fWidth;
^~~~~~~~
double
../../../include/../plugins/Display/GLFW/orxDisplay.c:5295:16: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoBottom'
sstDisplay.dLastOrthoBottom = (GLdouble)(sstDisplay.apstDestinationBitmapList[0] != orxNULL)
^~~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5300:17: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoBottom'
(sstDisplay.dLastOrthoBottom >= 0.0)
^~~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5301:32: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoRight'
? glOrtho(0.0f, sstDisplay.dLastOrthoRight, sstDisplay.dLastOrthoBottom, 0.0f, -1.0f, 1.0f)
^~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5301:60: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoBottom'
? glOrtho(0.0f, sstDisplay.dLastOrthoRight, sstDisplay.dLastOrthoBottom, 0.0f, -1.0f, 1.0f)
^~~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5301:7: error: 'glOrtho' was not declared in this scope
? glOrtho(0.0f, sstDisplay.dLastOrthoRight, sstDisplay.dLastOrthoBottom, 0.0f, -1.0f, 1.0f)
^~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5302:32: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoRight'
: glOrtho(0.0f, sstDisplay.dLastOrthoRight, 0.0f, -sstDisplay.dLastOrthoBottom, -1.0f, 1.0f);
^~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5302:67: error: 'orxDISPLAY_STATIC' {aka 'struct __orxDISPLAY_STATIC_t'} has no member named 'dLastOrthoBottom'
: glOrtho(0.0f, sstDisplay.dLastOrthoRight, 0.0f, -sstDisplay.dLastOrthoBottom, -1.0f, 1.0f);
^~~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5304:18: error: 'GL_MODELVIEW' was not declared in this scope
glMatrixMode(GL_MODELVIEW);
^~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5304:18: note: suggested alternative: 'GL_NEVER'
glMatrixMode(GL_MODELVIEW);
^~~~~~~~~~~~
GL_NEVER
../../../include/../plugins/Display/GLFW/orxDisplay.c:5329:25: error: 'GL_VERTEX_ARRAY' was not declared in this scope
glEnableClientState(GL_VERTEX_ARRAY);
^~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5329:25: note: suggested alternative: 'GL_VERTEX_SHADER'
glEnableClientState(GL_VERTEX_ARRAY);
^~~~~~~~~~~~~~~
GL_VERTEX_SHADER
../../../include/../plugins/Display/GLFW/orxDisplay.c:5329:5: error: 'glEnableClientState' was not declared in this scope
glEnableClientState(GL_VERTEX_ARRAY);
^~~~~~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5331:25: error: 'GL_TEXTURE_COORD_ARRAY' was not declared in this scope
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
^~~~~~~~~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5331:25: note: suggested alternative: 'GL_TEXTURE_2D_ARRAY'
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
^~~~~~~~~~~~~~~~~~~~~~
GL_TEXTURE_2D_ARRAY
../../../include/../plugins/Display/GLFW/orxDisplay.c:5333:25: error: 'GL_COLOR_ARRAY' was not declared in this scope
glEnableClientState(GL_COLOR_ARRAY);
^~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5333:25: note: suggested alternative: 'GL_COLOR'
glEnableClientState(GL_COLOR_ARRAY);
^~~~~~~~~~~~~~
GL_COLOR
../../../include/../plugins/Display/GLFW/orxDisplay.c:5337:5: error: 'glVertexPointer' was not declared in this scope
glVertexPointer(2, GL_FLOAT, sizeof(orxDISPLAY_VERTEX), orxFLAG_TEST(sstDisplay.u32Flags, orxDISPLAY_KU32_STATIC_FLAG_VBO) ? (GLvoid *)offsetof(orxDISPLAY_GLFW_VERTEX, fX) : &(sstDisplay.astVertexList[0].fX));
^~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5337:5: note: suggested alternative: 'glVertexAttribPointer'
glVertexPointer(2, GL_FLOAT, sizeof(orxDISPLAY_VERTEX), orxFLAG_TEST(sstDisplay.u32Flags, orxDISPLAY_KU32_STATIC_FLAG_VBO) ? (GLvoid *)offsetof(orxDISPLAY_GLFW_VERTEX, fX) : &(sstDisplay.astVertexList[0].fX));
^~~~~~~~~~~~~~~
glVertexAttribPointer
../../../include/../plugins/Display/GLFW/orxDisplay.c:5339:5: error: 'glTexCoordPointer' was not declared in this scope
glTexCoordPointer(2, GL_FLOAT, sizeof(orxDISPLAY_VERTEX), orxFLAG_TEST(sstDisplay.u32Flags, orxDISPLAY_KU32_STATIC_FLAG_VBO) ? (GLvoid *)offsetof(orxDISPLAY_GLFW_VERTEX, fU) : &(sstDisplay.astVertexList[0].fU));
^~~~~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5339:5: note: suggested alternative: 'glGetBufferPointerv'
glTexCoordPointer(2, GL_FLOAT, sizeof(orxDISPLAY_VERTEX), orxFLAG_TEST(sstDisplay.u32Flags, orxDISPLAY_KU32_STATIC_FLAG_VBO) ? (GLvoid *)offsetof(orxDISPLAY_GLFW_VERTEX, fU) : &(sstDisplay.astVertexList[0].fU));
^~~~~~~~~~~~~~~~~
glGetBufferPointerv
../../../include/../plugins/Display/GLFW/orxDisplay.c:5341:5: error: 'glColorPointer' was not declared in this scope
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(orxDISPLAY_VERTEX), orxFLAG_TEST(sstDisplay.u32Flags, orxDISPLAY_KU32_STATIC_FLAG_VBO) ? (GLvoid *)offsetof(orxDISPLAY_GLFW_VERTEX, stRGBA) : &(sstDisplay.astVertexList[0].stRGBA));
^~~~~~~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:5341:5: note: suggested alternative: 'glColorMask'
glColorPointer(4, GL_UNSIGNED_BYTE, sizeof(orxDISPLAY_VERTEX), orxFLAG_TEST(sstDisplay.u32Flags, orxDISPLAY_KU32_STATIC_FLAG_VBO) ? (GLvoid *)offsetof(orxDISPLAY_GLFW_VERTEX, stRGBA) : &(sstDisplay.astVertexList[0].stRGBA));
^~~~~~~~~~~~~~
glColorMask
In file included from ../../../src/plugin/orxPlugin_EmbeddedList.cpp:68:
../../../include/../plugins/Display/GLFW/orxDisplay.c: In function 'orxS32 orxDisplay_GLFW_GetParameterID(orxHANDLE, const orxCHAR*, orxS32, orxBOOL)':
../../../include/../plugins/Display/GLFW/orxDisplay.c:6227:83: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
pstInfo->iLocationTop = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6227:77: error: expected primary-expression before 'const'
pstInfo->iLocationTop = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6227:77: error: expected ')' before 'const'
pstInfo->iLocationTop = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:6232:84: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
pstInfo->iLocationLeft = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6232:78: error: expected primary-expression before 'const'
pstInfo->iLocationLeft = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6232:78: error: expected ')' before 'const'
pstInfo->iLocationLeft = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:6237:86: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
pstInfo->iLocationBottom = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6237:80: error: expected primary-expression before 'const'
pstInfo->iLocationBottom = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6237:80: error: expected ')' before 'const'
pstInfo->iLocationBottom = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:6242:85: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
pstInfo->iLocationRight = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6242:79: error: expected primary-expression before 'const'
pstInfo->iLocationRight = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6242:79: error: expected ')' before 'const'
pstInfo->iLocationRight = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:6248:80: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
pstInfo->iLocation = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)_zParam);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6248:74: error: expected primary-expression before 'const'
pstInfo->iLocation = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)_zParam);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6248:74: error: expected ')' before 'const'
pstInfo->iLocation = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)_zParam);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:6253:83: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
pstInfo->iLocationTop = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6253:77: error: expected primary-expression before 'const'
pstInfo->iLocationTop = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6253:77: error: expected ')' before 'const'
pstInfo->iLocationTop = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:6258:84: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
pstInfo->iLocationLeft = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6258:78: error: expected primary-expression before 'const'
pstInfo->iLocationLeft = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6258:78: error: expected ')' before 'const'
pstInfo->iLocationLeft = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:6263:86: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
pstInfo->iLocationBottom = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6263:80: error: expected primary-expression before 'const'
pstInfo->iLocationBottom = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6263:80: error: expected ')' before 'const'
pstInfo->iLocationBottom = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:6268:85: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
pstInfo->iLocationRight = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6268:79: error: expected primary-expression before 'const'
pstInfo->iLocationRight = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6268:79: error: expected ')' before 'const'
pstInfo->iLocationRight = glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)acBuffer);
~^~~~~
)
../../../include/../plugins/Display/GLFW/orxDisplay.c:6290:79: error: ISO C++ forbids declaration of 'type name' with no type [-fpermissive]
s32Result = (orxS32)glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)_zParam);
^~~~~~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6290:73: error: expected primary-expression before 'const'
s32Result = (orxS32)glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)_zParam);
^~~~~
../../../include/../plugins/Display/GLFW/orxDisplay.c:6290:73: error: expected ')' before 'const'
s32Result = (orxS32)glGetUniformLocationARB(pstShader->hProgram, (const GLcharARB *)_zParam);
~^~~~~
)
In file included from ../../../src/plugin/orxPlugin_EmbeddedList.cpp:68:
../../../include/../plugins/Display/GLFW/orxDisplay.c: At global scope:
../../../include/../plugins/Display/GLFW/orxDisplay.c:1977:26: error: 'szVertexShaderSource' defined but not used [-Werror=unused-variable]
static const orxSTRING szVertexShaderSource =
^~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[1]: *** [orxLIB.make:417: obj/x64/Release/orxLIB/orxPlugin_EmbeddedList.o] Error 1
make: *** [Makefile:21: orxLIB] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment