• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

To twith he Point.

Stoo

Junior Member
Being a noobie to C++ I got myself a couple of ref books and tho they are both very good they don`t actually tell me how to do anything other than print to a console.

I would very much like to be able to plot a pixel to a bitmap/window using x/y co-ords in the simplest way possible.

Can anybody point me to an example or create on.

Preferably with plenty of comments to ease my way.

Here`s hoping, Stoo 🙂
 
Well, rendering graphics can be quite a bit more complex than just printing to the console.

What environment are you programming in? Linux or Windows?
 
I'll just quote what I said in your last thread.

Well, Sorry to disappoint you Stoo, but this is really not an easy thing to do in C++. The problem is, doing this is going to vary from platform to platform. When dealing with guis, things just aren't really THAT easy. Text based programs are a much easier place to start when it comes to c++.

Assuming you are working with windows, this is probably the simplest I can get
http://www.winprog.org/tutorial/start.html

Make friends with the msdn. After you go through those tutorials there, you will finally be setup to do this
http://msdn.microsoft.com/en-us/library/dd145078(v=vs.85).aspx
 
C++ isn't a very easy language to begin with; and graphics in C++ certainly isn't. You'd need to interface with a proprietary library of one sort or another.

Come to think of it, and considering Cogman's comments in that other thread, the most accessible platform for programming these days is...the one you're looking at. Your browser!

Maybe you'd be interested in Mozilla's tutorial on a graphics element? It's Javascript and not C++, but you may already have everything you need to get started. It's probably best done in Firefox, of course.
 
Back
Top