View Full Version : Take a look at where there is wrong, thank you
02-25-2010, 01:28 AM
thank for you help
02-25-2010, 01:46 AM
I took a look.
Too bad it is impossible to help you do something I do not understand.
I don't know, if you can express yourself, just ask someone around you to write it for you.
02-25-2010, 04:31 AM
I do not know how to express.
Function of the error.
Or a code error.
Can you help me do.
I do not know how to express .my english are very bad(that's not my fault ,When I had just graduated from college, the English have been not used )
02-25-2010, 04:50 AM
what are you trying to do?
paste your code, link to other websites that describe what you are trying to do, give us something to work with..
02-25-2010, 05:01 AM
hi Mikael Korpela
Code is not on my machine. Next time I re-paste.
02-25-2010, 07:43 PM
int width, height;
typedef struct box
glClearColor(0.0, 0.0, 0.0, 1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
void myReshape(int w, int h)
width = w;
height = h;
glViewport(0, 0, w, h);
gluPerspective (45.0, (GLfloat) w/(GLfloat) h, 3.0, 10.0);
glTranslatef (0.0, 0.0, -4.0); /* move object into view */
keyboard(unsigned char c, int x, int y)
/* Main Loop
int main(int argc, char** argv)
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
02-26-2010, 04:39 AM
To me it seems amazing that, that code renders anything at all.
Where do you setup that display list that you call (3+3+3+3)*9 times per frame?
02-28-2010, 12:48 AM
hello mikael korpela.
This is my understanding fault.
I wrote the code is wrong.
Now I understand that this code means.
The intention of this program is split triangle.
I will be re-issued a new, simple code to the explanatory notes. (Inside recursion),
Sometimes you see the master code will be a little difficult to understand.
But you understand the master found very keen.
02-28-2010, 12:56 AM
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.