Search found 240 matches
- Tue Jan 10, 2012 4:12 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
I think I understand the different ways it rotates, I just want to rotate one shape while another stays still
- Tue Jan 10, 2012 4:02 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
Well when I put the rotate within the push and pop it won't rotate.
EDIT: This is using the "glutMainLoop();".
EDIT: This is using the "glutMainLoop();".
- Mon Jan 09, 2012 10:37 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
glPushMatrix(); glRotatef(0.1, 0.0, 1.0, 0.0); glBegin(GL_POLYGON); glColor3f(0.0, 0.0, 1.0); glVertex3f(0.3, 0.8, 0.0); glVertex3f(0.3, 0.2, 0.0); glVertex3f(0.8, 0.2, 0.0); glVertex3f(0.8, 0.8, 0.0); glEnd(); glPopMatrix(); Shouldn't this rotate my rectangle and nothing else?
- Mon Jan 09, 2012 9:30 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
Thanks!
So, the push and pop helps matrix selection?
So, the push and pop helps matrix selection?
- Mon Jan 09, 2012 9:08 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
which object is the "glRotatef" function rotating?
How do I specify one object as opposed to another?
Do I just use the "push" and "pop" to change between objects I'm controlling?
EDIT: Evidently not.
How do I specify one object as opposed to another?
Do I just use the "push" and "pop" to change between objects I'm controlling?
EDIT: Evidently not.
- Mon Jan 09, 2012 6:42 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
So does view space only have an x and y, or does it have a z within the use of the library?
- Mon Jan 09, 2012 6:41 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
So, model space has the origin in the center?
And view space has its own origin... like the upper left corner of the viewing area?
And view space has its own origin... like the upper left corner of the viewing area?
- Sun Jan 08, 2012 10:03 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
So now some questions...
What, more specifically, is the point of matrix mode and projection and "glOrtho"?
What, more specifically, is the point of matrix mode and projection and "glOrtho"?
- Sun Jan 08, 2012 10:01 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
I made a polygon! I did it! I made a window appear with a polygon inside of it!
Thanks, guys.
Ah, the feeling of learning something new, and visual, in programming. And without a bunch of bugs...for now.
Does it always feel this good?
Thanks, guys.
Ah, the feeling of learning something new, and visual, in programming. And without a bunch of bugs...for now.
Does it always feel this good?
- Sun Jan 08, 2012 9:23 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
Thank you.
I'm apparently supposed to put a library file inside of a "PlatformSDK" folder, but I'm not finding the folder.
Any ideas?
EDIT: I think I found what I was looking for.
I'm apparently supposed to put a library file inside of a "PlatformSDK" folder, but I'm not finding the folder.
Any ideas?
EDIT: I think I found what I was looking for.
- Sun Jan 08, 2012 7:19 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
Thank you.
Also, does "freeglut" work the same as Glut?
Also, does "freeglut" work the same as Glut?
- Sun Jan 08, 2012 1:54 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Re: Again with OpenGL
Thanks.
I'll try out that first link.
I think I tried the other one before and it didn't make much sense to me.
I'll try out that first link.
I think I tried the other one before and it didn't make much sense to me.
- Sun Jan 08, 2012 1:40 pm
- Forum: Programming Discussion
- Topic: Again with OpenGL
- Replies: 38
- Views: 7086
Again with OpenGL
I've gotten back into programming. I had done some work with SDL before, but anything I try to learn with OpenGL I don't understand. The tutorials on it don't seem complete, even the online book. How do I START? What goes at the BEGINNING of the program? How do I use a window that I've set up? How d...
- Mon Nov 14, 2011 5:09 pm
- Forum: Current Events and Science/Technology
- Topic: Oh dear, another person dies...
- Replies: 1
- Views: 2613
Oh dear, another person dies...
I didn't know about this social networking site,
but it seems strange enough given the circumstances, and the fact that it seems like so many people in technology have been dying.
http://finance.yahoo.com/news/co-founde ... 53108.html
but it seems strange enough given the circumstances, and the fact that it seems like so many people in technology have been dying.
http://finance.yahoo.com/news/co-founde ... 53108.html
- Fri Oct 28, 2011 9:54 pm
- Forum: Programming Discussion
- Topic: Not working... OpenGL
- Replies: 9
- Views: 2351
Re: Not working... OpenGL
Thanks guys.