Buenas noches ... estoy trabajando graficamente en el Borland C ... y quisiera saber si me pudiesen proporcionar o dar algunos tips para trabajar con un modo grafico de 640x480 con 256 colores?
... gracias de antemano ...
Moderador: yalmar




-
- #include "KrnzVesa.h" // here the kronozvesa lib
- #include <stdlib.h> // another lib
-
- //-------------------------------------------------------------------------
- void LocalTest()
- {
- // Change backround color
- kSetBackground( RGB(9,9,9) );
-
- // Paint some Pixels
- kPutPixel( 0,0, RGB(255,255,255) );
-
- kPutPixel( kGetScreenWidth(),kGetScreenHeight(), RGB(255,255,255) );
- getch();
-
- for( WORD I=0;I<200;I++ )
- kPutPixel( 50+(rand()%kGetScreenWidth()),
- 50+(rand()%kGetScreenHeight()),
- RGB(150+rand()%100,150+rand()%100,150+rand()%100) );
- getch();
- }
- //-------------------------------------------------------------------------
- int main()
- {
- kSetModeVesa( VESA_320x200x32K ); // like initgraph()
- kSetModeVesa( VESA_640x480x64K ); // change video mode
- kCloseModeVesa( ); // like closegraph()
- return 0; // ANSI C/C++
- }
- //-------------------------------------------------------------------------
-

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados