You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
3.4 KiB
C
111 lines
3.4 KiB
C
/****************************************************************************
|
|
* *
|
|
* Module : d3d9vertexshaderutils.h *
|
|
* *
|
|
* Purpose : See d3d9vertexshaderutils.c *
|
|
* *
|
|
****************************************************************************/
|
|
|
|
#ifndef D3D9VERTEXSHADERUTILS_H
|
|
#define D3D9VERTEXSHADERUTILS_H
|
|
|
|
/****************************************************************************
|
|
Includes
|
|
*/
|
|
#include <d3d9.h>
|
|
|
|
/****************************************************************************
|
|
Global Defines
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Global Types
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Global Variables
|
|
*/
|
|
|
|
/****************************************************************************
|
|
Function prototypes
|
|
*/
|
|
|
|
/* RWPUBLIC */
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif /* __cplusplus */
|
|
/* RWPUBLICEND */
|
|
|
|
/* RWPUBLIC */
|
|
|
|
/* Call this function before calling to any of the following ones */
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSSetActiveWorldMatrix(const RwMatrix *worldMatrix);
|
|
|
|
/*
|
|
* Copy the transposed combined world-view-projection matrix to the
|
|
* requested destination.
|
|
*/
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetComposedTransformMatrix(void *transformMatrix);
|
|
|
|
/*
|
|
* Copy the transposed combined world-view matrix to the
|
|
* requested destination.
|
|
*/
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetWorldViewTransposedMatrix(void *worldViewMatrix);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetWorldViewMatrix(void *worldViewMatrix);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetInverseWorldMatrix(void *inverseWorldMatrix);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetWorldMultiplyMatrix(RwMatrix *worldMultiplyMatrix,
|
|
const RwMatrix *matrix);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetWorldMultiplyTransposeMatrix(void *worldMultiplyMatrix,
|
|
const RwMatrix *matrix);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetWorldViewMultiplyTransposeMatrix(void *worldViewMultiplyMatrix,
|
|
const RwMatrix *matrix);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetWorldNormalizedMultiplyTransposeMatrix(void *worldMultiplyMatrix,
|
|
const RwMatrix *matrix);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetWorldNormalizedViewMultiplyTransposeMatrix(void *worldViewMultiplyMatrix,
|
|
const RwMatrix *matrix);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetWorldNormalizedTransposeMatrix(void *worldMatrix);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetProjectionTransposedMatrix(void *projectionMatrix);
|
|
|
|
/* Converting light parameters to local space */
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetNormalInLocalSpace(const RwV3d *normalWorldSpace,
|
|
RwV3d *normalLocalSpace);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetPointInLocalSpace(const RwV3d *pointWorldSpace,
|
|
RwV3d *pointLocalSpace);
|
|
|
|
RWEXPORT void RWAPI
|
|
_rwD3D9VSGetRadiusInLocalSpace(RwReal radiusWorldSpace,
|
|
RwReal *radiusLocalSpace);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
/* RWPUBLICEND */
|
|
|
|
#endif /* D3D9VERTEXSHADERUTILS_H */
|