Jump to content

View more

Image of the Day

雑魚は多めにして、爽快感重視にしつつ・・・(´・ω・`)
早いとこ、ベースを作って、完成にもっていかないとね。
タイトルもまだ迷ってるだよなぁ。 
#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

OpenGL used for bitmap loading?

4: Adsense

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   

1620
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! =)

#2 Julio   Members   

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   

1620
Like
Likes
Like

Posted 30 July 2001 - 06:47 AM

Thanks!

Please forgive me! =)

#4 merlin9x9   Members   

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   

1620
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.