Results 1 to 2 of 2

Thread: rotating bmp image

  1. #1
    Senior Member Regular Contributor
    Join Date
    Jan 2013
    Posts
    170

    Smile rotating bmp image

    well I am making an asteroids game using openGL and c++.I am importing bmp images. I have 8 images of a space ship that I want to rotate through.my question is how do I rotate through 8 images without using glRotatef function. I am unsure of how to post code to this site so if you need code let me know.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Apr 2010
    Location
    Germany
    Posts
    1,135
    Why would you exclude rotating geometry? The easiest way of rotating a rectangular image is to use texturing on a quad. You simply rotate the latter and the GL will handle the rest.

Similar Threads

  1. Rotating Objects - Light Rotating not expected
    By SparkyNZ in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 08-12-2015, 07:52 PM
  2. Image not rotating?
    By Nano511 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 07-18-2011, 12:55 AM
  3. Rotating around a point and Rotating across own axis
    By Mighty in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-10-2004, 10:15 PM
  4. rotating and object without rotating its axis
    By scam in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 12-17-2003, 08:30 AM
  5. Problem rotating parent then rotating children
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-04-2002, 11:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean