Results 1 to 3 of 3

Thread: Best way to draw tiles to QGL from the memory

  1. #1
    Join Date
    Mar 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Best way to draw tiles to QGL from the memory

    Hey guys, my first post here !
    Well, what I'm doing is: I'm developing a GBC emulator in C++ using Qt.
    So, as you probably figured (or not), all you do is basically read the GBC ROM into the memory (dinamically), so everything that runs on the GBC (sound, videos, I/O) is somewhere in there.
    That said, I have a part of the memory that is designed to video only. Quoting GBC docs, we have:
    This area is also known as Tile RAM, since it holds tiles. Each tile is 8x8 pixels of 2-bit color, which makes each tile 16 bytes long. This area is also divided up into two modes of tiles, signed and unsigned. In unsigned mode, tiles are numbered from 0-255 at $8000-$9000. In signed mode, tiles are numbered in two's complement from -127 to 128 at $87FF-$97F
    .
    So I'm using OpenGL to do the drawing in a Widget (promoted to QGLWidget).
    What would be the best way to draw all the stuff in this Widget ?

    Thanks !

  2. #2
    Join Date
    Mar 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Best way to draw tiles to QGL from the memory

    Any help would be appreciated !

    Thanks !

  3. #3
    Join Date
    Mar 2012
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Best way to draw tiles to QGL from the memory

    Nobody ?

    Thanks !

Similar Threads

  1. Replies: 10
    Last Post: 11th February 2011, 00:31
  2. Bitmap Memory location to read and draw in Qt
    By augusbas in forum Qt Programming
    Replies: 1
    Last Post: 2nd September 2010, 22:21
  3. Draw directly from a memory segment
    By 25an in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2009, 14:04
  4. How to draw a arc
    By ProTonS in forum Qt Programming
    Replies: 3
    Last Post: 9th September 2009, 16:41
  5. Best way to draw x,y graphs
    By steg90 in forum Newbie
    Replies: 1
    Last Post: 14th May 2007, 12:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.