Q
Qu0ll
I am trying to compile the open source OGLFT library with MinGW on Windows
Vista but encounter this strange error:
OGLFT.cpp: In member function `void OGLFT::Filled::init()':
OGLFT.cpp:2538: error: invalid conversion from `void (*)()' to `void (*)()'
OGLFT.cpp:2538: error: initializing argument 3 of `void
gluTessCallback(GLUtesselator*, GLenum, void (*)())'
How could "void (*)()" not be the same as "void (*)()"?
The actual line of source looks like this:
gluTessCallback( tess_obj_, GLU_TESS_VERTEX,
(GLUTessCallback)vertexCallback );
where vertexCallback is defined as:
void Filled::vertexCallback ( VertexInfo* vertex )
{
if ( vertex->color_tess_ != 0 )
glColor4fv( vertex->color_tess_->color( vertex->v_ ) );
if ( vertex->texture_tess_ != 0 )
glTexCoord2fv( vertex->texture_tess_->texCoord( vertex->v_ ) );
glVertex3dv( vertex->v_ );
}
I am new to C++ so I am not sure how much more of the code I need to show
you. I guess I just can't understand what the error message is actually
trying to say.
--
And loving it,
-Qu0ll (Rare, not extinct)
_________________________________________________
(e-mail address removed)
[Replace the "SixFour" with numbers to email me]
Vista but encounter this strange error:
OGLFT.cpp: In member function `void OGLFT::Filled::init()':
OGLFT.cpp:2538: error: invalid conversion from `void (*)()' to `void (*)()'
OGLFT.cpp:2538: error: initializing argument 3 of `void
gluTessCallback(GLUtesselator*, GLenum, void (*)())'
How could "void (*)()" not be the same as "void (*)()"?
The actual line of source looks like this:
gluTessCallback( tess_obj_, GLU_TESS_VERTEX,
(GLUTessCallback)vertexCallback );
where vertexCallback is defined as:
void Filled::vertexCallback ( VertexInfo* vertex )
{
if ( vertex->color_tess_ != 0 )
glColor4fv( vertex->color_tess_->color( vertex->v_ ) );
if ( vertex->texture_tess_ != 0 )
glTexCoord2fv( vertex->texture_tess_->texCoord( vertex->v_ ) );
glVertex3dv( vertex->v_ );
}
I am new to C++ so I am not sure how much more of the code I need to show
you. I guess I just can't understand what the error message is actually
trying to say.
--
And loving it,
-Qu0ll (Rare, not extinct)
_________________________________________________
(e-mail address removed)
[Replace the "SixFour" with numbers to email me]