*
* *
*
scene.org
Log in:
login for 1 year
No account? register here

Scene.org is hosted and supported by:
Scene.org is sponsored by:
* forum - #coders

*
Topic:  Beginning coding
* Posted by noouch Wednesday 5 July 2006 - 16:39 
I've been learning C++ on and off for the last few months and I guess it's going pretty well, but when it comes to graphics, I'm stuck on a not-so-minor detail:

I've got a small piece of code that fills a three dimensional bool array, and a rough idea of the math needed to create a 2D projection of said array (yeah, metaballs). My problem though is getting the whole thing drawn out on screen. What would you people say would be the best/simplest way to render the whole thing to the screen (page flipping like)?.

All I'm looking for really is a function that sets the screen mode, takes a 2D array with the dimensions of the screenmode containing RGB data and displays that on screen.

* Posted by _-_-__ Thursday 6 July 2006 - 11:18 
It sounds like what you want is a library like either TinyPTC or PTC. They will provide you with a framebuffer (RGB array) and support for quite a few OS.

* Posted by bdk Saturday 8 July 2006 - 4:17 
Give a look also to http://www.libsdl.org/
best props :)

* Posted by noouch Thursday 6 July 2006 - 21:13 
Hooray thanks. Exactly what I was looking for.

* Posted by g. Friday 7 July 2006 - 14:52 
www.pixeltoaster.com

*