Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

MARS_999

OpenGL Good tutorial on Scrolling and OpenGL

This topic is 6059 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am using SDL and OpenGL. I am looking to do a top down scroller, but can''t find any info on the subject? Also do you texture glRect() like you would a glBegin(GL_QUADS) routine? Thanks. Please forgive me! =)

Share this post


Link to post
Share on other sites
Advertisement
I think in order to texture map a polygon, you must specify texture coords for each vertex.. otherwise how does OpenGL know how to apply the texture to your surface?

That said, I remember reading something in my OpenGL book about automatically figuring out texture coordinates. Look up the docs for glTexGen*(). Not sure if that will work though.

Is there some reason you don''t want to use GL_QUADS? You can always write a utility function to encapsulate the functionality into a single function call.


-Brannon

Share this post


Link to post
Share on other sites
Now I would rather use GL_QUADS but not sure if I can us it in a Ortho projection? Thought Ortho was 2D? What I am trying to do is us teh Ortho to display a bitmap at my screen resolution I have set for a title page. Not sure on how to do it but would think using a glRect or GL_QUADS would work. But if GL_QUADS doesn't work with the Ortho projection then I guess I will have to use glRect? Hope that clears up what I am trying to do. =)

Please forgive me! =)

Edited by - Mars_999 on December 17, 2001 4:18:56 PM

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!