I hope you do not mind readers to answer my simple request. I have to make sure that I understand this right. Is the GLenum GlewInitResult setting the same? And is GlewInitResult being assigned only to return value of glewInit ()? Or to ask, whats and What is the bracket doing in an announcement (?)? Sorry if this is a minor question, I just want to make sure that I understand / understand the overall concept of OpenGL programming with freight. declares it as a variable called GlewInitResult and calls the function You can see it as two steps: Just like This is too basic stuff, and should be in the first chapter of any C (or C ++) book. There is no anything to do this with the OpenGL or GLEW library. For your second question, stores the first call function GLNM gluinitorsil = Gravinut ();
difference between GLenum GlewInitResult = glewInit ();
GLenum GlewInitResult = glewInit; // This statement gives me a type of mismatch error
GlewInit specifies in the variable.
GLenum GlewInitResult; GlewInitResult = glewInit ();
glewInit and the results given in the variable. Attempts to store the pointer function in the second variable, and as the variable is declared incorrectly, you get an error.
No comments:
Post a Comment