14 template<
typename T,
int size>
19 Array(
const T* pT){memcpy(
data, pT, size *
sizeof(T));};
22 {memcpy(
data, pA.
data, size *
sizeof(T));
return *
this;};
46 template<
typename T,
int size>
49 for (
int i= 0; i< size; i++)
54 template<
typename T,
int size>
58 memcpy(rdata,
data, size *
sizeof(T));
59 for (
int i= 0; i< size; i++)
64 template<
typename T,
int size>
68 for (
int i= 0; i< size; i++)
Using X files without the sources and the makefile How to use you just create a debug directory e the sample3 directory must contain Sample3 Final Sample3 exe Sample3 Final Debug Sample3 Final Gfx OpenGL bmp Sample3 Final Gfx tiny_skin bmp Sample3 Final Gfx tiny_4anim x The source files have the DevCpp project file plus the makefile The demos use standard FreeGlut functions Technical without warranty Neither Paul Coppens nor GameDev net make any or either express or with respect to the their or fitness for a specific purpose neither Paul Coppens nor GameDev net shall have any liability to you or any other person or entity with respect to any or damage caused or alleged to have been caused directly or indirectly by the programs provided by Paul Coppens and GameDev net This but is not limited interruption of loss of data
Definition: Readme.txt:39
Array< T, 2 > Set2(T pu, T pv)
Definition: Frm_3DMath.h:42
Array< T, 3 > Set3(T px, T py, T pz)
Definition: Frm_3DMath.h:39
Array< float, 3 > Vertex
Definition: Frm_3DMath.h:30
Array< float, 4 > Color4
Definition: Frm_3DMath.h:32
Array< T, 4 > Set4(T px, T py, T pz, T pw)
Definition: Frm_3DMath.h:36
Array< float, 2 > TCoord
Definition: Frm_3DMath.h:31
Array< float, 3 > Color3
Definition: Frm_3DMath.h:33
uint16 index
Definition: sample3.cpp:29
Definition: Frm_3DMath.h:15
Array(const T *pT)
Definition: Frm_3DMath.h:19
Array< T, size > Mult(const T pScalar)
Definition: Frm_3DMath.h:55
Array< T, size > operator+(Array< T, size > &pA)
Definition: Frm_3DMath.h:65
Array(void)
Definition: Frm_3DMath.h:17
Array< T, size > & operator=(Array< T, size > pA)
Definition: Frm_3DMath.h:21
T data[size]
Definition: Frm_3DMath.h:16
T & operator[](int index)
Definition: Frm_3DMath.h:27
T operator[](int index) const
Definition: Frm_3DMath.h:26
Array(const Array< T, size > &pA)
Definition: Frm_3DMath.h:18
Array< T, size > & operator+=(Array< T, size > &pA)
Definition: Frm_3DMath.h:47