PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

C++ console graphics?

Hand of Fate · 07 Oct 2004, 09:32 UTC
Hey wussup. Does anyone know if there is such thing as coding graphics in C++ for the Win32 console? Not Windows GUI Programming...the console. Would DirectX be a choice for the Win32 console? OpenGL? or other graphics library? Please help me out. I have already search the web but can find an answer.

Also...how do I program console apps for eVC++? Not possible?
eVC ?

No, but you can write console apps with VC++.

I am not sure what do you mean by "console graphics" though ...

You talking about coding to SVGA or just character based console output ?
Hand of Fate · 07 Oct 2004, 17:14 UTC
warmi wrote:eVC ?

No, but you can write console apps with VC++.

I am not sure what do you mean by "console graphics" though ...

You talking about coding to SVGA or just character based console output ?


Ohhh wait... I just wanted to code PPC graphics (pixels, lines, shapes, etc.) w/out the Windows programming... I wanted to do this for PPC and Windows... like enter into some sort of Mode 13 or soemthing?
Yeah then check out GAPI, GapiDraw or PocketHAL.

All of them provide an acess to the framebuffer which is what you are looking for.
Hand of Fate · 07 Oct 2004, 21:15 UTC
hey cool thanks. Yea, then I will take PocketHAL w/a side of biscuits and gravy. But in order to program for the PPC, I will have to get into Windows 32-bit programming, huh? Running the code in WinMain and stuff, and fetching and coding messages?
If this is the first thing you write EVC++ and VC++ should be go to File->New->Project->"give it a name" Win32 Application->Make Hello World.

I think you don't want to make a console and it is confusing your question.

Can't tell you squat about HAL and the rest. My code started with EasyCE years ago, how much is left I'm unsure.

From the PC HelloWorld I replace the hdc=BeginPaint(hWnd,&ps;) stuff the wizard will make with a hdc=GetDC(hWnd) and BitBlt a framebuffer I make with CreateDIBSection. VC++ of course.

Anyway use New app and read the hell out of that code. Go look for sources from PocketHAL and read the hell out of that code. It's not that I don't think my method is fine, it is just there is no support.
Hand of Fate · 08 Oct 2004, 00:38 UTC
no support? I didn't understand that part...
Yeah , ultimately you need to learn about how windows works because you will be running under Win32.

Message loops and other things will come handy.

Of course, you could use GapiDraw or PocketFrog which do this stuff for you but you still need to understand what's going on underneath.
Hand of Fate · 08 Oct 2004, 01:50 UTC
I see...
Hand of Fate wrote:Hey wussup. Does anyone know if there is such thing as coding graphics in C++ for the Win32 console? Not Windows GUI Programming...the console. Would DirectX be a choice for the Win32 console? OpenGL? or other graphics library? Please help me out. I have already search the web but can find an answer.

Also...how do I program console apps for eVC++? Not possible?

Vincent (an open source implementation based on the published OpenGL ES APIhttp://sf.net/projects/ogl-es) comes with a helper library ug (think: mini-GLUT) that gives you a start without getting too much involved into Win32. However, Win32 is definitively going to pay of eventually.

- HM