Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

keethrus

old school style with new gfx ways?

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

hey all, i used to do some graphics programming, but it was where the screen was one big array and i only used 256 colors. with the new things already out and kicking, directx or opengl, id still like to get back to the big-array approach, but i would like to up my color-count some. im basically looking for some advice. im not wanting to do anything 3D at all, and my goal is just to produce a really simple 2D game thats playable on a windows machine. id like to be able to program my graphics using the big-array approach, but with RGB values (5, 5, 6) or something similar. what is the simpliest way to go about doing this with either directx or opengl? thanx in advice. =) - jeremiah http://inlovewithGod.com

Share this post


Link to post
Share on other sites
Advertisement
Use DirectDraw (7.0), it is perfect for that. You allocate one or more surfaces, which you can lock and get a pointer to and manipulate in anyway you wish.


Share this post


Link to post
Share on other sites
quote:
since microsoft has released version 8, does that still allow me to use the version 7 direct draw? if not, where can i get version 7?


Yes.

Another option, is to get a DOS compiler (like DJGPP) and then use SVGA modes, high-res and color.

Share this post


Link to post
Share on other sites
quote:
Original post by keethrus
since microsoft has released version 8, does that still allow me to use the version 7 direct draw?
Yes, all DX versions are required to support all previous versions.
quote:
if not, where can i get version 7?
You don''t need to get anything, but as DirectDraw isn''t a part of DirectX anymore the documentation has been excluded from the SDK since 8.0. But you can download it from here: http://www.microsoft.com/downloads/release.asp?ReleaseID=25680&area=search&ordinal=3 (Dx7Docs.exe, 14.4mb)


Share this post


Link to post
Share on other sites
Allegro is also a good library for doing that kind of thing. In my high school we used that library to learn graphics stuff. It has a very old-school like feel to it. If you are dedicated to using VisualC++ then you may find it a bit of a pain to get all set up with it. It was designed for DJGPP, so that is by far the easiest compiler to set it up on. But, if you don''t mind DJGPP then this library is great. It is also fairly portable. On linux you won''t have to change any of your code to compile.

be pround to be out of your mind

Share this post


Link to post
Share on other sites
thanx for all the replies.

im planning on using a windows compiler, not dos, and i just want a pointer or two to the screen and a secondary buffer, so i can program all my gfx stuph myself, since its simple and 2D, its fun to make the effects and everything. :-)

quote:
You don''t need to get anything, but as DirectDraw isn''t a part of DirectX anymore the documentation has been excluded from the SDK since 8.0. But you can download it from here: http://www.microsoft.com/downloads/release.asp?ReleaseID=25680&area=search&ordinal=3 (Dx7Docs.exe, 14.4mb)



so i can just download the DirectX 8.0 SDK and it will allow me to compile DX7 DirectDraw stuph?

- jeremiah

inlovewithGod.com

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!