HOOK-D3DX9 Library functions

Source: Internet
Author: User

Original address: http://blog.csdn.net/weiwangchao_/article/details/7037506

The following is a summary of the D3DX9 library functions I have compiled, and later, in addition to MSDN, archive backup:

d3dxcolor* d3dxcoloradd//Two color combination values
d3dxcolor* WINAPI D3dxcoloradjustcontrast (//Adjust color contrast
D3dxcolor *pout,
Const D3DXCOLOR *PC,
FLOAT C
);
d3dxcolor* WINAPI d3dxcoloradjustsaturation (//Adjust color saturation
D3dxcolor *pout,
Const D3DXCOLOR *PC,
FLOAT s
);
d3dxcolor* d3dxcolorlerp//Two color linear interpolation complement create a color
d3dxcolor* d3dxcolormodulate//mix of two colors
d3dxcolor* D3dxcolorscale//zoom in or out on color values
d3dxcolor* d3dxcolornegative//Create a cool value for a color
d3dxcolor* d3dxcolorsubtract//two colors subtracted
HRESULT WINAPI d3dxcreatematrixstack//Create a Id3dxmarixstack instance
float* WINAPI d3dxfresnelterm//calculate Fresnel coefficient
float* WINAPI D3dxfloat16to32array//Convert 16-bit float array to 32-bit
d3dxfloat16* WINAPI d3dxfloat32to16array//Convert 32-bit float array to 16-bit
d3dxmatrix* WINAPI d3dxmatrixaffinetrandformation (//Create radial transformation matrix
D3dxmatrix* POut,
FLOAT Scaling,
Const D3DXQUATERNION *protation,
Const D3DXVECTOR3* Ptranslation
);
d3dxmatrix* d3dxmatrixaffinrtransformation2d//Creating a radial transformation matrix in a plane
HRESULT WINAPI d3dxmatrixdecompose//decomposition a 3D transformation matrix is a scaling factor, a rotational component and a shift vector
FLOAT WINAPI d3dxmatrixdeterminant//Calculate matrix determinant values
d3dxmatrix* d3dxmatrixidentity//Create a unit matrix
d3dxmatrix* d3dxmatrixinverse//Compute inverse matrix
BOOL d3dxmatrixisidentity//Judging unit matrix
d3dxmatrix* WINAPI D3DXMATRIXLOOKATLH//Create left-hand system observation matrix
d3dxmatrix* WINAPI D3DXMATRIXLOOKATRH//Create right-hand system observation matrix
d3dxmatrix* WINAPI d3dxmatrixmultiply//Two matrix multiplication
Transpose of the product of d3dxmatrix* WINAPI d3dxmatrixmultiplytranspose//matrix
d3dxmatrix* WINAPI D3DXMATRIXORTHOLH//Create left-handed orthogonal projection matrix
d3dxmatrix* WINAPI D3DXMATRIXORTHORH//Create right-handed orthogonal projection matrix
d3dxmatrix* WINAPI d3dxmatrixorthooffcenterlh//Create user-defined left-handed orthogonal projection matrix
d3dxmatrix* WINAPI d3dxmatrixorthooffcenterrh//Create user-developed right-handed orthogonal projection matrix
d3dxmatrix* WINAPI d3dxmatrixperspectiveforlh//Create left-handed projection coordinate system
d3dxmatrix* WINAPI d3dxmatrixperspectiveforrh//Creating a right-handed projection coordinate system
d3dxmatrix* WINAPI D3dxmatrixrotationaxis//Create a matrix of rotation around any axis
d3dxmatrix* WINAPI d3dxmatrixrotationquaternion//Four tuples create a rotation matrix
d3dxmatrix* WINAPI D3dxmatrixrotationx//rotation matrix around X axis
d3dxmatrix* WINAPI d3dxmatrixrotationy//rotation matrix around Y axis
d3dxmatrix* WINAPI D3DXMatrixRotationZ//rotation matrix around Z axis
d3dxmatrix* WINAPI d3dxmatrixrotationyawpitchroll//rotation matrix around xyz angle
d3dxmatrix* WINAPI d3dxmatrixscaling//scaling matrix along XYZ
d3dxmatrix* WINAPI D3dxmatrixshadow//create Plane Shadow matrix
d3dxmatrix* WINAPI d3dxmatrixtransformation//Create a transformation matrix
d3dxmatrix* WINAPI d3dxmatrixtransformation2d//Create a planar transformation matrix
d3dxmatrix* WINAPI d3dxmatrixtranspose//Transpose The Matrix
FLOAT D3dxplanedot//plane equation and 4D vector dot multiplication
FLOAT D3dxplanedotcoord//plane with 3D vector dot multiplication, w=1
FLOAT d3dxplanedotnormal//plane with 3D vector dot multiplication, w=0
d3dxplane* WINAPI d3dxplanefrompointnormal//Point method to create a plane
d3dxplane* WINAPI d3dxplanefrompoints//Three point create plane
d3dxvector3* WINAPI d3dxplaneintersectline//Find straight plane intersection
d3dxplane* WINAPI d3dxplanenormalize//normalized plane equation coefficients for unit normals
d3dxplane* D3dxplanescale//Zoom plane
d3dxplane* WINAPI d3dxplanetransform//matrix transpose plane
d3dxplane* WINAPI d3dxplanetransformarray//transform plane array with transformation matrix
d3dxquaternion* WINAPI d3dxquaternionbarycentric//Three four-dollar center of gravity
d3dxquaternion* d3dxquaternionconjugate//Find conjugate four-dollar number
FLOAT D3dxquaterniondot//four Yuan multiplier
d3dxquaternion* WINAPI d3dxquaternionexp//four Yuan Index
d3dxquaternion* WINAPI d3dxquaternioninverse//conjugate transformation and normalization of four yuan
d3dxquaternion* d3dxquaternionidentity//unit four Yuan
BOOL d3dxquaternionisidentity//judging unit four Yuan
FLOAT d3dxquaternionlength//return four dollar length
FLOAT D3DXQUATERNIONLENGTHSQ//return four yuan length squared
d3dxquaternion* WINAPI d3dxquaternionln//Calculate natural logarithm
d3dxquaternion* WINAPI d3dxquaternionmultiply//Two four Yuan multiply
d3dxquaternion* WINAPI d3dxquaternionnormalize//unit length four Yuan
d3dxquaternion* WINAPI d3dxquaternionrotationaxis//rotation of four yuan around the axis
d3dxquaternion* WINAPI d3dxquaternionrotationmatrix//rotation matrix create four-dollar number
d3dxquaternion* WINAPI d3dxquaternionrotationyawpitchroll//Four-dollar number created around XYZ rotation
d3dxquaternion* WINAPI d3dxquaternionslerp//Two X four-element spherical interpolation
d3dxquaternion* WINAPI D3dxquaternionsquad//Spherical quadrilateral interpolation four yuan
void WINAPI D3dxquaternionsquadsetup//Creating a control point for spherical quadrilateral interpolation
void WINAPI d3dxquaterniontoaxisangle//vector around self-rotating angle four-dollar count
float* WINAPI D3dxshadd//addition of spherical harmonic function vectors
d3dxvector2* D3dxvec2add//2d Vector addition
d3dxvector* WINAPI d3dxvec2barycentric//Three flat weight-oriented center of gravity
d3dxvector2* WINAPI d3dxvec2catmullrom//catmull-rom interpolation calculation, 2D
FLOAT D3DXVEC2CCW z component of//2d vector fork multiplication
FLOAT d3dxvec2dot//2d Vector dot Multiply
d3dxvector2* WINAPI d3dxvec2hermite//hermite spline interpolation
FLOAT d3dxvec2length//2d vector length
FLOAT d3dxvec2lengthsq//2d vector length squared
d3dxvector2* d3dxvec2lerp//2d Vector Long-term interpolation
d3dxvector2* D3dxvec2maximize//consists of the largest components in two 2D vectors
d3dxvector2* D3dxvec2minimize//consists of the smallest components in two 2D vectors
d3dxvector2* WINAPI d3dxvec2normalize//normalized 2D vector
d3dxvector2* D3dxvec2scale//Scaling 2D vector
d3dxvector2* d3dxsubtract//2d Vector Subtraction
d3dxvector2* WINAPI d3dxvec2transform//matrix to transform 2D vectors
d3dxvector2* WINAPI D3dxvec2transformarray//Matrix transform array

d3dxvector2* WINAPI D3dxvec2transformcoord//Matrix transform 2D vector w=1
d3dxvector2* WINAPI D3dxvec2transformcoordarray//Matrix transform a set of vectors (x,y,0,1)
d3dxvector2* WINAPI d3dxvec2transformnormal//Matrix transform 2D vector general composition
d3dxvector2* WINAPI d3dxvec2transformnormalarray//Matrix transformation vector (x,y,0,0)

d3dxvector3* D3dxvec3add//3d Vector addition
d3dxvector3* WINAPI d3dxvec3barycentric//three x 3D vector center of gravity coordinate point
d3dxvector3* WINAPI d3dxvec3catmullrom//3d vector catmullrom interpolation
d3dxvector3* d3dxvec3cross//3d Vector Fork Multiply
FLOAT d3dxvec3dot//3d Vector dot Multiply
d3dxvector3* WINAPI d3dxvec3hermite//3d vector Hermite spline interpolation
FLOAT d3dxvec3length//3d vector length
FLOAT d3dxvec3lengthsq//3d vector length squared
d3dxvector3* D3dxvec3maximize//consists of the largest components in two 3D vectors
d3dxvector3* D3dxvec3minimize//consists of the smallest components in two 3D vectors
d3dxvector3* d3dxvec3lerp//3d Vector linear interpolation
d3dxvector3* WINAPI d3dxvec3normalize//3d Vector Normalization
d3dxvector3* WINAPI d3dxvec3project//object vectors from space projection to screen
d3dxvector3* D3dxvec3scale//Scaling 3D vector
d3dxvector3* d3dxvec3subtract//3d Vector Subtraction
d3dxvector4* WINAPI d3dxvec3transform//matrix transforms the vector, w=1
d3dxvector4* WINAPI d3dxvec3transformarray//Matrix transforms a vector array
d3dxvector3* WINAPI d3dxvec3transformcoord//Matrix transform 3D vector collocated w 1 projection result
d3dxvector3* WINAPI d3dxvec3transformcoordarray//Matrix transform 3D vector array and set W to 1 of the cast fruit
d3dxvector3* WINAPI d3dxvec3transformnormal//matrix transformation vector Standard, w=0
d3dxvector3* WINAPI d3dxvec3transformnormalarray//matrix transformation vector array standard type, w=0


d3dxvector4* D3dxvec4add//two x 4D vectors added
d3dxvector3* WINAPI d3dxvec3unproject//vector projection from screen to object
d3dxvector3* WINAPI d3dxvec3unprojectarray//vector array projection from screen to object
d3dxvector4* WINAPI d3dxvec4catmullrom//4d vector catmullrom interpolation
d3dxvector4* WINAPI d3dxvec4barycentric//4d vector composition of the triangle's center of gravity
d3dxvector4* WINAPI d3dxvec4cross//4d Vector Fork Multiply
d3dxvector4* WINAPI d3dxvec4dot//4d Vector Point multiplication

HOOK-D3DX9 Library functions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.