Jump to content

Any C/C++ Windows programmers here?


helene_t

Recommended Posts

I am writing some stuff for my work and need very simple graphics routines. Something like:

 

#include<simplegraphicslib.h>

 

main() {

GraphicsBuffer *mybuffer = makeGraphicsBuffer (100,100,colors16);

rect (mybuffer, 0,0,33,99, blue);

rect (mybuffer, 34,0,66,99, white);

rect (mybuffer, 67,0,99,99, red);

writeGraphicsBuffer (mybuffer, "frenchflag.png");

}

 

Any suggestions? Could also be useful for making pictures for birthday greetings.

Link to comment
Share on other sites

gd is nifty.

 

I haven't done much graphics in C/C++, but XNA uses C# and has some very simple and very powerful stuff, and the IDE/compiler is free from Microsoft. I did some silly simple code for effecient circle packing with it for fun.

http://farm4.static.flickr.com/3485/3796580568_4780d21a01.jpg

Took very little time to code. You can use image files like pngs, place them, scale them, rotate them, adjust their transparency, use antialiased fonts, etc. Pretty slick.

 

I made a little boids program with it too, just to familiarize myself with it

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...