Jump to content
  • Advertisement
Sign in to follow this  
t5hoo6

Can i use this

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

I'm trying to put graphics on the screen but I want to do it dot by dot, in C I know how in basic 'pset (5,5),2' And i need to know how to use color in C to

Share this post


Link to post
Share on other sites
Advertisement
In DOS you can use the graphics.h header which I remember has a putpixel function. You'll need to initialize graphics first.

In windows it's a whole other story, and you'd better look into APIs like SDL, DirectDraw, OpenGL, Direct3D.

Share this post


Link to post
Share on other sites
Quote:
Original post by Ilici
In DOS you can use the graphics.h header which I remember has a putpixel function. You'll need to initialize graphics first.

In windows it's a whole other story, and you'd better look into APIs like SDL, DirectDraw, OpenGL, Direct3D.


graphics.h isn't a standard header, so that may not be portable. If you're in real DOS mode you could allways look up "mode 13h" and other direct SVGA programming :-).

For pixel pushing, I'd recomend the SDL (http://libsdl.org/)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!