some questions

Posts 1–7 of 7 · Page 1 of 1
some questions
in some aimbot codes for CA i see a class or struct type called "D3DXVECTOR3". what is this, and why is it used? why not a regular vector?
also, it is not defined in the source codes! how is it used if it isnt defined?
It should be 100% declared on the d3d header...

Code:
#include <d3d9.h>

#pramga comment(lib, "d3d9.lib")
It's a 3D Vector I think...It's like on XNA...Vector2, Vector3, etc...
To put it in the most simplest terms:

D3D Vectors are used to convert the the computer information from a 2D plane into a 3D plane.

Basically, your transforming your 2D images,textures,models,etc... into 3D coordinates.

D3D Vectors are usually used to program the camera in a game.
i have another question - why do people use typedef struct ...? whats the diff between typedef struct and a regular struct?
i think its to name it as it suits to the coder
typedef because c didn't have structs
what changes from an array to a d3dxvector? like:
Code:
double a[10][10][10];
to
Code:
D3DXVECTOR a;
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Talk with us