2007-04-19 19:02:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2007 Vijay Kiran Kamuju
|
|
|
|
* Copyright 2007 David ADAM
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __D3DRMDEFS_H__
|
|
|
|
#define __D3DRMDEFS_H__
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <d3dtypes.h>
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef D3DVALUE D3DRMMATRIX4D[4][4];
|
2010-01-01 11:55:04 +00:00
|
|
|
|
|
|
|
typedef struct _D3DRMQUATERNION {
|
2007-04-19 19:02:09 +00:00
|
|
|
D3DVALUE s;
|
|
|
|
D3DVECTOR v;
|
|
|
|
} D3DRMQUATERNION, *LPD3DRMQUATERNION;
|
|
|
|
|
2010-01-01 11:55:04 +00:00
|
|
|
typedef enum _D3DRMLIGHTTYPE {
|
|
|
|
D3DRMLIGHT_AMBIENT,
|
|
|
|
D3DRMLIGHT_POINT,
|
|
|
|
D3DRMLIGHT_SPOT,
|
|
|
|
D3DRMLIGHT_DIRECTIONAL,
|
|
|
|
D3DRMLIGHT_PARALLELPOINT
|
|
|
|
} D3DRMLIGHTTYPE, *LPD3DRMLIGHTTYPE;
|
|
|
|
|
2010-01-10 20:41:18 +00:00
|
|
|
typedef DWORD D3DRMRENDERQUALITY, *LPD3DRMRENDERQUALITY;
|
|
|
|
|
|
|
|
typedef enum _D3DRMTEXTUREQUALITY {
|
|
|
|
D3DRMTEXTURE_NEAREST,
|
|
|
|
D3DRMTEXTURE_LINEAR,
|
|
|
|
D3DRMTEXTURE_MIPNEAREST,
|
|
|
|
D3DRMTEXTURE_MIPLINEAR,
|
|
|
|
D3DRMTEXTURE_LINEARMIPNEAREST,
|
|
|
|
D3DRMTEXTURE_LINEARMIPLINEAR
|
|
|
|
} D3DRMTEXTUREQUALITY, *LPD3DRMTEXTUREQUALITY;
|
|
|
|
|
2010-01-01 11:55:04 +00:00
|
|
|
typedef struct _D3DRMPALETTEENTRY {
|
|
|
|
unsigned char red;
|
|
|
|
unsigned char green;
|
|
|
|
unsigned char blue;
|
|
|
|
unsigned char flags;
|
|
|
|
} D3DRMPALETTEENTRY, *LPD3DRMPALETTEENTRY;
|
|
|
|
|
|
|
|
typedef struct _D3DRMIMAGE {
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
int aspectx;
|
|
|
|
int aspecty;
|
|
|
|
int depth;
|
|
|
|
int rgb;
|
|
|
|
int bytes_per_line;
|
|
|
|
void* buffer1;
|
|
|
|
void* buffer2;
|
|
|
|
unsigned long red_mask;
|
|
|
|
unsigned long green_mask;
|
|
|
|
unsigned long blue_mask;
|
|
|
|
unsigned long alpha_mask;
|
|
|
|
int palette_size;
|
|
|
|
D3DRMPALETTEENTRY* palette;
|
|
|
|
} D3DRMIMAGE, *LPD3DRMIMAGE;
|
|
|
|
|
|
|
|
typedef enum _D3DRMWRAPTYPE {
|
|
|
|
D3DRMWRAP_FLAT,
|
|
|
|
D3DRMWRAP_CYLINDER,
|
|
|
|
D3DRMWRAP_SPHERE,
|
|
|
|
D3DRMWRAP_CHROME,
|
|
|
|
D3DRMWRAP_SHEET,
|
|
|
|
D3DRMWRAP_BOX
|
|
|
|
} D3DRMWRAPTYPE, *LPD3DRMWRAPTYPE;
|
|
|
|
|
|
|
|
typedef DWORD D3DRMLOADOPTIONS;
|
|
|
|
|
|
|
|
typedef enum _D3DRMUSERVISUALREASON {
|
|
|
|
D3DRMUSERVISUAL_CANSEE,
|
|
|
|
D3DRMUSERVISUAL_RENDER
|
|
|
|
} D3DRMUSERVISUALREASON, *LPD3DRMUSERVISUALREASON;
|
|
|
|
|
2007-04-19 19:02:09 +00:00
|
|
|
void WINAPI D3DRMMatrixFromQuaternion(D3DRMMATRIX4D, LPD3DRMQUATERNION);
|
|
|
|
|
|
|
|
LPD3DRMQUATERNION WINAPI D3DRMQuaternionFromRotation(LPD3DRMQUATERNION ,LPD3DVECTOR,D3DVALUE);
|
|
|
|
LPD3DRMQUATERNION WINAPI D3DRMQuaternionMultiply(LPD3DRMQUATERNION, LPD3DRMQUATERNION, LPD3DRMQUATERNION);
|
|
|
|
LPD3DRMQUATERNION WINAPI D3DRMQuaternionSlerp(LPD3DRMQUATERNION, LPD3DRMQUATERNION, LPD3DRMQUATERNION, D3DVALUE);
|
|
|
|
|
|
|
|
LPD3DVECTOR WINAPI D3DRMVectorAdd(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR);
|
|
|
|
LPD3DVECTOR WINAPI D3DRMVectorCrossProduct(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR);
|
|
|
|
D3DVALUE WINAPI D3DRMVectorDotProduct(LPD3DVECTOR, LPD3DVECTOR);
|
|
|
|
LPD3DVECTOR WINAPI D3DRMVectorNormalize(LPD3DVECTOR);
|
|
|
|
|
|
|
|
#define D3DRMVectorNormalise D3DRMVectorNormalize
|
|
|
|
|
|
|
|
D3DVALUE WINAPI D3DRMVectorModulus(LPD3DVECTOR);
|
|
|
|
LPD3DVECTOR WINAPI D3DRMVectorRandom(LPD3DVECTOR);
|
|
|
|
LPD3DVECTOR WINAPI D3DRMVectorRotate(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR, D3DVALUE);
|
|
|
|
LPD3DVECTOR WINAPI D3DRMVectorReflect(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR);
|
|
|
|
LPD3DVECTOR WINAPI D3DRMVectorScale(LPD3DVECTOR, LPD3DVECTOR, D3DVALUE);
|
|
|
|
LPD3DVECTOR WINAPI D3DRMVectorSubtract(LPD3DVECTOR, LPD3DVECTOR, LPD3DVECTOR);
|
|
|
|
|
2007-05-20 14:27:30 +00:00
|
|
|
D3DCOLOR WINAPI D3DRMCreateColorRGB(D3DVALUE, D3DVALUE, D3DVALUE);
|
2007-05-20 14:26:44 +00:00
|
|
|
D3DCOLOR WINAPI D3DRMCreateColorRGBA(D3DVALUE, D3DVALUE, D3DVALUE, D3DVALUE);
|
2007-05-20 10:27:13 +00:00
|
|
|
D3DVALUE WINAPI D3DRMColorGetAlpha(D3DCOLOR);
|
2007-05-20 10:26:21 +00:00
|
|
|
D3DVALUE WINAPI D3DRMColorGetBlue(D3DCOLOR);
|
2007-05-20 10:25:17 +00:00
|
|
|
D3DVALUE WINAPI D3DRMColorGetGreen(D3DCOLOR);
|
2007-05-20 10:24:30 +00:00
|
|
|
D3DVALUE WINAPI D3DRMColorGetRed(D3DCOLOR);
|
|
|
|
|
2007-04-19 19:02:09 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|