Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


OpenGL and bitmaps


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 cerberus   Members   -  Reputation: 122

Like
Likes
Like

Posted 01 September 1999 - 10:53 PM

I have a pretty good understanding of how to display a "power of 2" (256x256, etc) texture...but what if I want to just display a 800x600 background bitmap? Loading a bitmap is no problem...just displaying it is givin me a headache. Is there any reasonable way to do this in opengl, or am I stuck with the GDI? Can opengl and the gdi work on the same rendering context? Thanks in advance!

Sponsor:

#2 Cryogen   Members   -  Reputation: 122

Like
Likes
Like

Posted 01 September 1999 - 10:53 PM

The answer is to cut up your background bitmap into multiple 256x256 (every card I've heard of can handle this size - newer ones can handle larger textures) textures and draw them all as multiple textured quads.

Alternatively you can draw your backdrop using glDrawPixels, however under hardware renderers this is something like 20 times slower than the above method.

l8r
Ryan

------------------
--
Ryan Haksi
cryogen@infoserve.net
http://members.home.com/borealis/ryan.html





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS