Panda3D
|
This is an "unaligned" LVecBase4. More...
#include <pandadoc.hpp>
Public Types | |
enum | { num_components = 4 , is_int = 1 } |
Public Member Functions | |
__init__ () | |
__init__ (const LVecBase4i copy) | |
__init__ (const UnalignedLVecBase4i) | |
__init__ (int fill_value) | |
__init__ (int x, int y, int z, int w) | |
fill (int fill_value) | |
Sets each element of the vector to the indicated fill_value. More... | |
getData () | |
Returns the address of the first of the three data elements in the vector. More... | |
bool | operator!= (const UnalignedLVecBase4i other) |
bool | operator== (const UnalignedLVecBase4i other) |
int | operator[] (int i) |
operator[] (int i, int assign_val) | |
set (int x, int y, int z, int w) | |
Static Public Member Functions | |
static TypeHandle | getClassType () |
static int | getNumComponents () |
static int | size () |
This is an "unaligned" LVecBase4.
It has no functionality other than to store numbers, and it will pack them in as tightly as possible, avoiding any SSE2 alignment requirements shared by the primary LVecBase4 class.
Use it only when you need to pack numbers tightly without respect to alignment, and then copy it to a proper LVecBase4 to get actual use from it.
__init__ | ( | ) |
__init__ | ( | const LVecBase4i | copy | ) |
__init__ | ( | const | UnalignedLVecBase4i | ) |
__init__ | ( | int | fill_value | ) |
__init__ | ( | int | x, |
int | y, | ||
int | z, | ||
int | w | ||
) |
fill | ( | int | fill_value | ) |
Sets each element of the vector to the indicated fill_value.
This is particularly useful for initializing to zero.
|
static |
getData | ( | ) |
Returns the address of the first of the three data elements in the vector.
The remaining elements occupy the next positions consecutively in memory.
|
static |
bool operator!= | ( | const UnalignedLVecBase4i | other | ) |
bool operator== | ( | const UnalignedLVecBase4i | other | ) |
int operator[] | ( | int | i | ) |
operator[] | ( | int | i, |
int | assign_val | ||
) |
set | ( | int | x, |
int | y, | ||
int | z, | ||
int | w | ||
) |
|
static |