Results 1 to 6 of 6

Thread: bitmap vs geometric shapes?

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2001
    Posts
    19

    bitmap vs geometric shapes?

    If i were to make some kinda of moving block, tetris flavored game, would it be better/faster/easier to draw the blocks using geometric rectangle functions...or to use bitmaps?

    Also is there some sort of timer function that can be used to make function calls every so many time units?

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: bitmap vs geometric shapes?

    using textures will be the fastest way.
    source to tetris is on my site.
    for glut u can setup a timer with glutTimerFunc

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2001
    Posts
    19

    Re: bitmap vs geometric shapes?

    Thanx man. I'll check out ur code and see what i can learn from it.

  4. #4
    Junior Member Newbie
    Join Date
    Feb 2001
    Posts
    19

    Re: bitmap vs geometric shapes?

    Hrm...i'm getting an error on the tetris.html. Says it does not exist

  5. #5
    Senior Member Regular Contributor
    Join Date
    May 2001
    Location
    London UK
    Posts
    195

    Re: bitmap vs geometric shapes?

    I do not think that textures is the fastest way. Tetris is made up of colored blocks so you do not need bitmaps. You can do it both ways and if you have hardware acceleration is speed certainly not a problem.

    It should also be easier to delay after each frame. If you are using GLUT is the easiest to use glutGet(GLUT_ELAPSED_TIME), see: http://www.fatech.com/tech/opengl/glut/index.php3?fps

  6. #6
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: bitmap vs geometric shapes?

    the page is there but the server tends to go siesta quite often

Similar Threads

  1. Incomplete shapes and "blobs" (extra solid shapes)
    By bballdave025 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 07-12-2011, 11:54 PM
  2. VBO for geometric primitive
    By OGNewBee in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-31-2011, 06:29 AM
  3. Geometric PartView
    By Digga in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 01-13-2010, 08:45 AM
  4. Replies: 3
    Last Post: 09-20-2002, 10:25 AM
  5. geometric self-shadowing
    By Pentagram in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 08-12-2002, 01:29 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