![]() ![]() WindowHandle = glutCreateWindow(WINDOW_TITLE) įprintf(stderr, "ERROR: Could not create new rendering window.\n") Ĭould someone tell me what I am doing wrong? Thanks. GlutInitDisplayMode(GLUT_DEPTH | GLUT_DOUBLE | GLUT_RGBA) GLenum glGetError() The moment glGetErroris called, it returns either an error flag or no error at all. GlutInitWindowSize(CurrentWidth, CurrentHeight) Your program simply states 'There are gl errors'. The moment you incorrectly use OpenGL (like configuring a buffer without first binding any) it will take notice and generate one or more user error flags behind the scenes. With the orientation array, there is no >. GlutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, By using vector or normal there is a degree of freedom or rotation > left (underconstrained). GlutInitContextProfile(GLUT_CORE_PROFILE) GlutInitContextFlags(GLUT_FORWARD_COMPATIBLE) Here's my code: int main(int argc, char* argv) Code worked before, but I am not aware of any changes I could possibly make. When an error occurs, the error flag is set to the appropriate error code value. I tried to disable glewExperimental, it had no effect. GLINVALIDENUM, 0x0500: Given when an enumeration parameter is not a legal enumeration for that function. Each detectable error is assigned a numeric code and symbolic name. For some reason, after a call to glewInit(), glGetError() returns error code 1280.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |