Advertisement

Quick WinAPI question

Started by January 11, 2003 08:52 AM
1 comment, last by julienX 21 years, 10 months ago
Hello, just wondering: Is it possible to make graphics using just the WinApi? I''m a little confused about something. There is this game that I played and in the readme it says ''created using just the WinAPI''. To me this means using either GDI or SDL, but I want to know is there a way to make graphics using JUST the WinAPI? Any help would be great
chacha
it's called the GDI

it provides alot of functions to draw lines, curves etc.
but those functions are not useful for a realtime game since it would be way to slow.
the fast way to do graphics with winapi only is by doing everything in a buffer (you need you own line drawing algos and stuff here, like in DDraw) and then set this buffer with SetDiBits to a memory dc and blit this to a visible window surface.
AFAIK this is the fastest way to do graphics without using OGL/DX/etc. .. at least it's fast enough for my software 3d engine and winamp plugins i've seen to do realtime gfx


Runicsoft -- home of my open source Function Parser and more

[edited by - Burning_Ice on January 11, 2003 11:13:36 AM]
Advertisement
GDI - Graphic Device Interface ? i think so right

but the gdi is to slow and besides windows does not let us access the videocard directly , like Dos would, so D3D ,OpenGl,Allegro and many other were developed to work with the hardware, video card, directly so we have great speed doing graphics programming.

Yes it''s possible to make graphics using just the GDI "graphics part of WinApi"
Metal Typhoon

This topic is closed to new replies.

Advertisement