Backup proyecto Joyfe - Borland

This commit is contained in:
2025-06-16 22:54:10 +02:00
commit d61829a1a7
130 changed files with 11881 additions and 0 deletions

45
LIB/DXVIDEO.H Normal file
View File

@ -0,0 +1,45 @@
// ************************************************************************************************
//
// Soporte para video Direct X.
//
// ************************************** (c) Pedro D<>ez L<>pez ************************************
#ifndef __DIRECTX_SUPPORT__
#define __DIRECTX_SUPPORT__
#include <ddraw.h>
class CDXVideo
{
public:
int hres; // Resolucion horizontal.
int vres; // Resolucion vertical
int bpp; // bpp de la resolucion.
int DimBuffer; // Dimension del buffer.
int ElmBuffer; // Elementos del buffer.
union Buffer // Distintos tipos de resolucion.
{
void *bpp;
BYTE *bpp8;
WORD *bpp16;
DWORD *bpp32;
}pBuffer;
HCURSOR mDDCursorShape;
private:
LPDIRECTDRAW lpDD; // Puntero a Direct Draw.
LPDIRECTDRAWSURFACE lpDDSView; // Puntero a la superficie.
LPDIRECTDRAWSURFACE lpDDSBack; // Puntero a la 2<> superficie.
void *lpDXBuffer;// Puntero al LFB.
DDSURFACEDESC ddsd; // Descriptor de Superficie.
DDSCAPS ddscaps; // Descriptor de capabilities.
HRESULT ddrval; // Resultado de la llamada DD.
public:
BOOL Inicio(HWND hwnd,int Ancho,int Alto,int BPP);
void Cursor(HCURSOR nCursor);
void Pinta ();
void Fin();
};
#endif