Sign in to follow this  

Showing a picture??

This topic is 4765 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

Please let me know if my understanding is correct with this so far? From previous threads I am inferring that all you have to do is to create an image with any image editor, and OGL or DirectX will allow you to display the image. The other question is what code do I use to do this?

Share this post


Link to post
Share on other sites
If you want to display a picture only, you don't need D3D or OGL.
You can use a (rather) simple library like SDL to load and display images in just a few lines code.
Look at the tutorials on that site to read how this can be done.

Share this post


Link to post
Share on other sites
You can indeed load an image and display it on screen using either DirectX or OGL (or a number of other options for that matter, including GDI, Allegro, SDL, etc.).

The exact code used would depend on what language you were using, as well as what API/library you were using. If you look for tutorials in whatever language/API combination you'd like to use, you should have no trouble finding some sample code for displaying an image.

Share this post


Link to post
Share on other sites
DX, OpenGL, and SDL all load different types of images. They all load .bmp images, but if you want to use a different type, be sure to check with the documentation.

Share this post


Link to post
Share on other sites

This topic is 4765 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this