samedi 25 avril 2015

c++ error in glActiveTexture

I am new to C ++.

Not that type of information you may need, so I will put what, think that can be helpful. details:

  1. Eclipse Platform. Version: 4.3.1.
  2. c++ dialect: c++11.
  3. OS: GNU/Linux.

I am trying this code and have in following error someone could tell me I'm doing wrong:

void demo_render( void )
{

    glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );  
    glUseProgram( g_programObj );

    glActiveTexture(GL_TEXTURE0 + 0);   //<-- this Here error
    glBindTexture(GL_TEXTURE_2D, gFlipObj.atlasTextureHandle);
    glUniform1i( atlasTextureLoc, 0 );
    .///

error:

'glActiveTexture' is ambiguous 'Candidates are: void glActiveTexture(unsigned int)
'

in gl.h this is de code:

GLAPI void GLAPIENTRY glActiveTexture( GLenum texture );

typedef unsigned int GLenum;

#define GL_TEXTURE0 0x84C0

P.S. if you need more information I will put.

but I can not understand what you're saying, I hope it's not a very silly question thanks for reading

Aucun commentaire:

Enregistrer un commentaire