Advertisement

Graphics, without a library

Started by January 13, 2003 05:26 AM
8 comments, last by Optimus 21 years, 10 months ago
Hello I would like to write something in c/c++, a little game or something, without using the allegro library, opengl or directX. I know allero is optimised, but I just want to have some fun.. My question is, does anyone has a good tutorial on this, maybe ? Thanks Nothing and all, by some meaning, no difference
Nothing and all, by some meaning, no difference
To write a simple basic game with no 3rd party Gfx library, I would suggest you to write a basic Win32 game.
You can find information on how to switch mode under win 32 on gamedev, and how to do basic animation at winprog.org. The win32 help will also give you all the Gfx primitives you may use.

My Borland C++ 5.01 has a tutorial to realize a simple drawing application. Could you check your own manual to see if your compiler manual also provides some basic tutorials ? I also always check the examples provided with my compiler: they always show something interesting (like the use of the cards.dll library).

Hope that helps.
Ghostly yours,
Red.
Ghostly yours,Red.
Advertisement

Doesn''t using GDI count as using a library?

To Robbo:
The way the question sounded, Optimus wanted to program without using a specialized Gfx 3rd party library (I know DX is also MicroSoft but you do not need DX to make a Win32 API with a visible window).
Besides, to start programming, it is quite easy using GDI (fonts, rectangles, Bitmaps, Timers) and it is the base to know when you need later to make editors.
Thus GDI does qualify.

Have a nice day.
Ghostly yours,
Red.

"Play-Doh" and "Microwave" should never be used in the same sentence.

[edited by - Red Ghost on January 13, 2003 9:19:51 AM]
Ghostly yours,Red.
quote: Original post by Robbo

Doesn''t using GDI count as using a library?



How do you program in windows w/out using a library ???
Windows IS a buch of libraries...

I think that what Optimus want is to do something that
when running in other pc''s you won''t need to install anything
but windows... If you use GDI you''ll not need any aditional libs.

KaMiKaZe
You could do a text game. Don''t even need windows for that.

A text adventure, or ''text-rpg,'' would be just working with your game data, along with some language parsing stuff (ie figuring out what the player means when they say ''pick up the rock'').

Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.

Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse

Advertisement

Or you could go back to MSDOS and roll your own! (but believe me, its incredibly painful). Hey but int13h is actually part of the OS, technically a library function tagged onto an interrupt so I guess thats out too.

Gonna have to write your own OS -

(ps. Just do stuff with GDI - its quick and simple - depending on what language\framework you are using).
To program a game "without" using a library litterally means programming a game using 16-bit Assembly/C. Or 32-bit Assembly using some mundane method to call 16-bit interrupts, but there is no other way to do it. And since this IS a beginners forum I doubt that Optimus is capable of doing this. So Optimus, please be more specific next time you ask a question. Also I wanted to say that GDI isn''t a good platform to write games, which is why they made DirectX in the first place, GDI will make redrawing your bitmaps visible, unless you use some clever tricks of your own. Anyway such knowledge is good to know, but not neccessary in game programming today.

-------
Homepage: http://students.washington.edu/andrey
-------Homepage: http://www.pclx.com
You can just as well code 32bit code using watcom,
which also makes calling the 16-bit interrupts pretty
easy. Check out Denthor''s VGA-tutorials for tons of
info about it.


--
MFC is sorta like the swedish police... It''''s full of crap, and nothing can communicate with anything else.
Oh, just noted something:
"without using the allegro library, opengl or directX"
Doesn''t say anything about NO libraries...
I guess using GDI is the way to go then.


--
MFC is sorta like the swedish police... It''''s full of crap, and nothing can communicate with anything else.

This topic is closed to new replies.

Advertisement