More work on menus.

This commit is contained in:
Steven Fuller 2001-10-28 01:55:11 +00:00 committed by Patryk Obara
parent ea23e5a1bb
commit 7ef81cbc6e
14 changed files with 405 additions and 219 deletions

View file

@ -2149,6 +2149,20 @@ DDSurface * AwCreateSurface(char const * _argFormatS, ...)
using namespace AwTl;
/* Just convert the texture to 32bpp */
pixelFormat.palettizedB = 0;
pixelFormat.alphaB = 1;
pixelFormat.validB = 1;
pixelFormat.bitsPerPixel = 32;
pixelFormat.redLeftShift = 0;
pixelFormat.greenLeftShift = 8;
pixelFormat.blueLeftShift = 16;
pixelFormat.redRightShift = 0;
pixelFormat.greenRightShift = 0;
pixelFormat.blueRightShift = 0;
pixelFormat.dwRGBAlphaBitMask = 0xFF000000;
va_list ap;
va_start(ap,_argFormatS);
CreateTextureParms parms;

View file

@ -103,11 +103,13 @@ struct AwCreateGraphicRegion
{
unsigned left, top, right, bottom; /* rectangle to cut from the original image */
unsigned width, height; /* width and height of the resulting surface or texture */
#if 0
union /* DDSurface or D3DTexture pointer depending on the context used */
{
DDSurface * pSurface; /* Direct Draw Surface object pointer */
D3DTexture * pTexture; /* Direct 3D Texture object pointer */
};
#endif
};
/* typedef to save typing 'struct' when not using C++ */

View file

@ -443,61 +443,10 @@ int NearestColour(int rs, int gs, int bs, unsigned char *palette)
}
/*************************************************************************/
/*************************************************************************/
/*
PC Video Mode Array Functions
*/
#define m320diag (378 + 6)
/*
PC Video Mode Function Arrays
*/
void (*SetVideoMode[]) (void) = {
0
};
/*
Initialise System and System Variables
@ -1797,12 +1746,10 @@ int ChangeDisplayModes(HINSTANCE hInst, int nCmd,
obviously...
FIXME!!!
*/
/* test only!!! */
#if 0
chdir("d:\3dc");
#endif
/*
SetVideoMode[VideoMode]();
*/
/*
Lose all the textures and reload the