Graphics

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
VoidLogic

Graphics

Post by VoidLogic »

I am working under the time constrants of my project being a school project. I'm looking for a fast 8 or 15 or 16 or 24 or 32 bit graphics library that run in super VGA resultions (at least 1024x768). I'm using Borland C++ 5.02 and I am operating in Real Mode. If you know of a suitible library please let me know.

-VoidLogic
Khumba

RE:Graphics

Post by Khumba »

You could use VESA (www.vesa.org). Download the VBE 3.0 standard, if you can use asm then it's really easy to do.
VoidLogic

RE:Graphics

Post by VoidLogic »

Maybe it i easy but mu knowlage of ASM is very limited. Do you know of a C++/C library?
feaster

RE:Graphics

Post by feaster »

It is easy to do in Assembler.

mov ax,0x4F02
mov bx,(mode nr from table) (example mov bx,0x100 )
int 0x10


Values for VESA video mode:
00h-FFh OEM video modes (see #00010 at AH=00h)
100h 640x400x256
101h 640x480x256
102h 800x600x16
103h 800x600x256
104h 1024x768x16
105h 1024x768x256
106h 1280x1024x16
107h 1280x1024x256
108h 80x60 text
109h 132x25 text
10Ah 132x43 text
10Bh 132x50 text
10Ch 132x60 text
---VBE v1.2+ ---
10Dh 320x200x32K
10Eh 320x200x64K
10Fh 320x200x16M
110h 640x480x32K
111h 640x480x64K
112h 640x480x16M
113h 800x600x32K
114h 800x600x64K
115h 800x600x16M
116h 1024x768x32K
117h 1024x768x64K
118h 1024x768x16M
119h 1280x1024x32K (1:5:5:5)
11Ah 1280x1024x64K (5:6:5)
11Bh 1280x1024x16M
---VBE 2.0+ ---
120h 1600x1200x256
121h 1600x1200x32K
122h 1600x1200x64K
Post Reply