Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


OpenGL used for bitmap loading?


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
4 replies to this topic

#1 MARS_999   Members   -  Reputation: 1297

Like
Likes
Like

Posted 30 July 2001 - 06:36 AM

Ok, I am using OpenGL to try and load a bitmap file for a screen background into a win32 window. I will not be running in fullscreen mode either. Is their a function that will just load up the bitmap file? If not could someone please help out with a code example of how to display a bitmap. Now when I have this bitmap displayed can I still use win32 gpx calls like lineto moveto? Or does OpenGL have functions that are like those in win32 to draw simple lines and rectangles? Thanks Please forgive me! =)

Sponsor:

#2 Julio   Members   -  Reputation: 116

Like
Likes
Like

Posted 30 July 2001 - 06:42 AM

well, you''ll have to either write your own loader, use a library like the auxilary library which is in gluax.lib, or steal someone else''s code.


Never underestimante the power of stupid people in large groups.

#3 MARS_999   Members   -  Reputation: 1297

Like
Likes
Like

Posted 30 July 2001 - 06:47 AM

Thanks!

Please forgive me! =)

#4 merlin9x9   Members   -  Reputation: 174

Like
Likes
Like

Posted 30 July 2001 - 07:21 AM

You might consider using DevIL (formerly known as OpenIL). Not only will it load many image formats, but it also has functions for creating OpenGL textures from those images with a single function.

If you do end up using something like DevIL, I highly recommend using a format other than Windows Bitmap. If the images need no alpha channel, use high-quality JPEG, otherwise use Targa.

#5 MARS_999   Members   -  Reputation: 1297

Like
Likes
Like

Posted 30 July 2001 - 05:17 PM

Thanks for the info merlin!

Please forgive me! =)




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