comparison src/video/fbcon/SDL_fbvideo.c @ 133:5d4bafca35cd

Added support for hardware accelerated NVidia driver on framebuffer console Still missing colorkey and alpha blit support
author Sam Lantinga <slouken@libsdl.org>
date Tue, 31 Jul 2001 20:08:51 +0000
parents 63ec24e0575f
children e8157fcb3114
comparison
equal deleted inserted replaced
132:2604a7be65af 133:5d4bafca35cd
47 #include "SDL_fbvideo.h" 47 #include "SDL_fbvideo.h"
48 #include "SDL_fbmouse_c.h" 48 #include "SDL_fbmouse_c.h"
49 #include "SDL_fbevents_c.h" 49 #include "SDL_fbevents_c.h"
50 #include "SDL_fb3dfx.h" 50 #include "SDL_fb3dfx.h"
51 #include "SDL_fbmatrox.h" 51 #include "SDL_fbmatrox.h"
52 #include "SDL_fbriva.h"
53
52 54
53 #if defined(i386) && defined(FB_TYPE_VGA_PLANES) 55 #if defined(i386) && defined(FB_TYPE_VGA_PLANES)
54 #define VGA16_FBCON_SUPPORT 56 #define VGA16_FBCON_SUPPORT
55 #ifndef FB_AUX_VGA_PLANES_VGA4 57 #ifndef FB_AUX_VGA_PLANES_VGA4
56 #define FB_AUX_VGA_PLANES_VGA4 0 58 #define FB_AUX_VGA_PLANES_VGA4 0
502 case FB_ACCEL_3DFX_BANSHEE: 504 case FB_ACCEL_3DFX_BANSHEE:
503 #ifdef FBACCEL_DEBUG 505 #ifdef FBACCEL_DEBUG
504 printf("3DFX hardware accelerator!\n"); 506 printf("3DFX hardware accelerator!\n");
505 #endif 507 #endif
506 FB_3DfxAccel(this, finfo.accel); 508 FB_3DfxAccel(this, finfo.accel);
509 break;
510 case FB_ACCEL_NV3:
511 case FB_ACCEL_NV4:
512 #ifdef FBACCEL_DEBUG
513 printf("NVidia hardware accelerator!\n");
514 #endif
515 FB_RivaAccel(this, finfo.accel);
507 break; 516 break;
508 default: 517 default:
509 #ifdef FBACCEL_DEBUG 518 #ifdef FBACCEL_DEBUG
510 printf("Unknown hardware accelerator.\n"); 519 printf("Unknown hardware accelerator.\n");
511 #endif 520 #endif