Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to do oldschool graphics in win

How to do oldschool graphics in win

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsc++game-devperformancehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mirex
    wrote on last edited by
    #1

    Hi guys, Im working on an old-skool project which should be game in 0x13 Dos resolution which was 320 x 200, 256 colours, paletized. Can anyone tell me how it is possible to use this mode in windows (in VC++)? Initializing was done easily and probably will be no problem, but drawing in this mode was done through direct memory access to 0xA000:0000 which will windows probably block in win app. Or, is there any other way how to use paletized colour mode like this ? thanks

    A 1 Reply Last reply
    0
    • M mirex

      Hi guys, Im working on an old-skool project which should be game in 0x13 Dos resolution which was 320 x 200, 256 colours, paletized. Can anyone tell me how it is possible to use this mode in windows (in VC++)? Initializing was done easily and probably will be no problem, but drawing in this mode was done through direct memory access to 0xA000:0000 which will windows probably block in win app. Or, is there any other way how to use paletized colour mode like this ? thanks

      A Offline
      A Offline
      Andrew Walker
      wrote on last edited by
      #2

      Bad news sorry, most of the memory blocks and DOS interrupt tricks that old school 13h and modex programs used won't work under windows. However it is possible to still use the same techniques. If you allocate a framebuffer (similar to a double buffer), you should be able to then use SDL, DirectX or OpenGL to draw a textured quad to a full screen application. On the other hand it may be just as easy to look at OpenGL, DirectX or SDL directly - they make everything so much simpler, and although they take a while to learn it's nothing too hard and there are plenty of websites offering assistance. Most video cards still support these resolutions.


      If you can keep you head when all about you Are losing theirs and blaming it on you; If you can dream - and not make dreams your master; If you can think - and not make thoughts your aim; Yours is the Earth and everything that's in it. Rudyard Kipling

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups