TrinityCore
|
Namespaces | |
_internal | |
units | |
Classes | |
class | _internalGThreadWorker |
class | AABox |
class | AlignedMemoryManager |
class | Any |
Easy loading and saving of human-readable configuration files. More... | |
class | AnyTableReader |
class | AreaMemoryManager |
Allocates memory in large blocks and then frees it as an area. More... | |
class | Array |
Dynamic 1D array tuned for performance. More... | |
class | AtomicInt32 |
class | BinaryInput |
class | BinaryOutput |
class | Box |
An arbitrary (oriented) 3D box, useful as a bounding box. More... | |
class | Box2D |
class | BufferPool |
class | BumpMapPreprocess |
class | Capsule |
class | CollisionDetection |
class | Color1 |
class | Color3 |
class | Color4 |
class | Conduit |
class | Cone |
struct | ConvertAttributes |
class | ConvexPolygon |
class | ConvexPolygon2D |
class | ConvexPolyhedron |
class | CoordinateFrame |
A rigid body RT (rotation-translation) transformation. More... | |
class | CRTMemoryManager |
class | Crypto |
class | Cylinder |
class | DirectedEdge |
class | Dummy |
class | FileNotFound |
class | FilePath |
Parsing of file system paths. More... | |
class | FileSystem |
class | Frustum |
class | G3DSpecification |
class | GMutex |
Mutual exclusion lock used for synchronization. More... | |
class | GMutexLock |
class | GThread |
class | GUniqueID |
class | Image1 |
class | Image3 |
class | Image4 |
class | ImageFormat |
class | Intersect |
class | KDTree |
class | LightweightConduit |
class | Line |
class | LineSegment |
class | LineSegment2D |
class | Log |
class | Map2D |
class | Matrix |
class | Matrix2 |
class | Matrix3 |
class | Matrix4 |
class | Matrix4float64 |
struct | md5_state_s |
class | MD5Hash |
class | MemoryManager |
class | MeshAlg |
class | MeshBuilder |
class | MeshEdgeTable |
class | MirrorQuality |
class | NetAddress |
class | NetListener |
class | NetworkDevice |
Abstraction of network (socket) functionality. More... | |
class | ParseError |
class | PhysicsFrame |
class | PhysicsFrameSpline |
class | Plane |
class | Pointer |
class | PointHashGrid |
A sparse 3D grid of point-based data. More... | |
class | PointKDTree |
class | PrecomputedRandom |
class | PrimitiveType |
class | Quat |
class | Queue |
class | Random |
class | Ray |
class | Rect2D |
class | ReferenceCountedObject |
class | RefractionQuality |
class | ReliableConduit |
class | Set |
class | SmallArray |
class | Sphere |
class | Spinlock |
A mutual exclusion lock that busy-waits when locking. More... | |
class | Spline |
class | SplineBase |
class | SplineExtrapolationMode |
class | SplineInterpolationMode |
class | Stopwatch |
Accurately measure durations and framerates. More... | |
class | System |
OS and processor abstraction. More... | |
class | Table |
class | TextInput |
A simple tokenizer for parsing text files. More... | |
class | TextOutput |
class | ThreadSet |
class | Token |
class | Triangle |
class | uint128 |
class | UprightFrame |
Coordinate frame expressed in Euler angles. Unlike a G3D::Quat, UprightFrame always keeps the reference frame from rolling about its own z axis. Particularly useful for cameras. More... | |
class | UprightSpline |
Shortest-path linear velocity spline for camera positions. Always keeps the camera from rolling. More... | |
class | Vector2 |
class | Vector3 |
class | Vector4 |
class | Vector4int8 |
class | WeakCache |
class | Welder |
class | WrapMode |
class | XML |
Easy loading and saving of XML and HTML files. More... | |
Typedefs | |
typedef AreaMemoryManager | CoherentAllocator |
typedef class CoordinateFrame | CFrame |
typedef class Rect2D | AABox2D |
typedef Color3 | Biradiance3 |
typedef Color3 | Radiance3 |
typedef Color3 | Radiosity3 |
typedef Color3 | Energy3 |
typedef Color3 | Irradiance3 |
typedef Color3 | Power3 |
typedef bool(* | AssertionHook )(const char *_expression, const std::string &message, const char *filename, int lineNumber, bool useGuiPrompt) |
typedef void(* | ConsolePrintHook )(const std::string &) |
typedef double | GameTime |
typedef double | SimTime |
typedef double | RealTime |
typedef int8_t | int8 |
typedef uint8_t | uint8 |
typedef int16_t | int16 |
typedef uint16_t | uint16 |
typedef int32_t | int32 |
typedef uint32_t | uint32 |
typedef int64_t | int64 |
typedef uint64_t | uint64 |
typedef float | float32 |
typedef double | float64 |
typedef shared_ptr< class GThread > | GThreadRef |
typedef shared_ptr< class Image1 > | Image1Ref |
typedef shared_ptr< class Image3 > | Image3Ref |
typedef shared_ptr< class Image4 > | Image4Ref |
typedef ImageFormat | TextureFormat |
typedef shared_ptr< class ReliableConduit > | ReliableConduitRef |
typedef shared_ptr< class LightweightConduit > | LightweightConduitRef |
typedef shared_ptr< class NetListener > | NetListenerRef |
typedef PhysicsFrame | PFrame |
typedef Stopwatch | StopWatch |
typedef Vector2 | Point2 |
typedef Vector2int16 | Point2int16 |
typedef Vector2int32 | Point2int32 |
typedef Vector2unorm16 | Point2unorm16 |
typedef Vector3 | Point3 |
typedef Vector3int16 | Point3int16 |
typedef Vector3int32 | Point3int32 |
typedef unsigned char | md5_byte_t |
typedef unsigned int | md5_word_t |
typedef struct G3D::md5_state_s | md5_state_t |
typedef void(* | ConvertFunc )(const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
Enumerations | |
enum | BinaryFormat { FIRST_BINFMT = 1000, BOOL8_BINFMT, UINT8_BINFMT, INT8_BINFMT, UINT16_BINFMT, INT16_BINFMT, UINT32_BINFMT, INT32_BINFMT, UINT64_BINFMT, INT64_BINFMT, UINT128_BINFMT, INT128_BINFMT, FLOAT16_BINFMT, FLOAT32_BINFMT, FLOAT64_BINFMT, VECTOR2_BINFMT, VECTOR2INT16_BINFMT, VECTOR3_BINFMT, VECTOR3INT16_BINFMT, VECTOR4_BINFMT, VECTOR4INT16_BINFMT, COLOR3_BINFMT, COLOR3UINT8_BINFMT, COLOR3INT16_BINFMT, COLOR4_BINFMT, COLOR4UINT8_BINFMT, COLOR4INT16_BINFMT, STRING_BINFMT, STRINGEVEN_BINFMT, STRING8_BINFMT, STRING16_BINFMT, STRING32_BINFMT, CHUNK_BINFMT, CUSTOM_BINFMT, LAST_BINFMT } |
enum | AMPM { AM, PM } |
enum | { SECOND =1, MINUTE =60, HOUR = 60*60, DAY =24*60*60, SUNRISE =24*60*60/4, SUNSET =24*60*60*3/4, MIDNIGHT =0, METER =1, KILOMETER =1000 } |
enum | SpawnBehavior { USE_NEW_THREAD, USE_CURRENT_THREAD } |
enum | G3DEndian { G3D_BIG_ENDIAN, G3D_LITTLE_ENDIAN } |
The order in which the bytes of an integer are stored on a machine. More... | |
Functions | |
template<class T > | |
bool | contains (const T *array, int len, const T &e) |
int32 | byteSize (BinaryFormat f) |
G3D::Color3 | operator* (float s, const G3D::Color3 &c) |
G3D::Color3 | operator* (G3D::Color1 &s, const G3D::Color3 &c) |
G3D::Color3 | operator* (const G3D::Color3 &c, G3D::Color1 &s) |
G3D::Color3 | operator/ (float s, const G3D::Color3 &c) |
Color4 | operator* (const Color3 &c3, const Color4 &c4) |
Color4 | operator* (float fScalar, const Color4 &other) |
bool | isValidHeapPointer (const void *x) |
bool | isValidPointer (const void *x) |
void | setAssertionHook (AssertionHook hook) |
AssertionHook | assertionHook () |
void | setFailureHook (AssertionHook hook) |
AssertionHook | failureHook () |
void | setConsolePrintHook (ConsolePrintHook h) |
ConsolePrintHook | consolePrintHook () |
std::string __cdecl | consolePrintf (const char *fmt...) G3D_CHECK_PRINTF_ARGS |
std::string | consolePrint (const std::string &) |
std::string __cdecl | debugPrintf (const char *fmt...) G3D_CHECK_PRINTF_ARGS |
std::string | debugPrint (const std::string &) |
template<class EnumClass , class EnumClassValue > | |
void | enumToJavaScriptDeclaration (TextOutput &t) |
Generates JavaScript source code defining an enum equivalent to EnumClass. More... | |
std::string | readWholeFile (const std::string &filename) |
void | writeWholeFile (const std::string &filename, const std::string &str, bool flush=true) |
FILE * | createTempFile () |
bool | zipfileExists (const std::string &filename, std::string &outZipfile, std::string &outInternalFile) |
bool | zipfileExists (const std::string &filename) |
void | parseFilename (const std::string &filename, std::string &drive, Array< std::string > &path, std::string &base, std::string &ext) |
std::string | filenameBaseExt (const std::string &filename) |
std::string | filenameExt (const std::string &filename) |
std::string | filenameBase (const std::string &filename) |
std::string | generateFilenameBase (const std::string &prefix="", const std::string &suffix="") |
std::string | filenamePath (const std::string &filename) |
bool | filenameContainsWildcards (const std::string &filename) |
std::string | pathConcat (const std::string &dirname, const std::string &file) |
void | gaussian1D (Array< float > &coeff, int N=5, float std=0.5f) |
std::string __cdecl | format (const char *fmt...) G3D_CHECK_PRINTF_ARGS |
std::string | vformat (const char *fmt, va_list argPtr) G3D_CHECK_VPRINTF_ARGS |
void | initG3D (const G3DSpecification &spec=G3DSpecification()) |
int | g3dfnmatch (const char *pattern, const char *string, int flags) |
SimTime | toSeconds (int hour, int minute, double seconds, AMPM ap) |
SimTime | toSeconds (int hour, int minute, AMPM ap) |
double | inf () |
double | nan () |
float | finf () |
float | fnan () |
double | pi () |
float | pif () |
double | halfPi () |
double | twoPi () |
int | iAbs (int iValue) |
int | iCeil (double fValue) |
int | iClamp (int val, int low, int hi) |
int16 | iClamp (int16 val, int16 low, int16 hi) |
double | clamp (double val, double low, double hi) |
float | clamp (float val, float low, float hi) |
double | lerp (double a, double b, double f) |
float | lerp (float a, float b, float f) |
int | iWrap (int val, int hi) |
int | iFloor (double fValue) |
int | iSign (int iValue) |
int | iSign (double fValue) |
int | iSign (float f) |
double | round (double f) |
float | round (float f) |
int | iRound (double fValue) |
int | iRound (float f) |
int | iRandom (int low, int hi) |
double | abs (double fValue) |
double | aCos (double fValue) |
double | aSin (double fValue) |
double | aTan (double fValue) |
double | aTan2 (double fY, double fX) |
double | sign (double fValue) |
double | square (double fValue) |
bool | isFinite (double x) |
bool | isNaN (double x) |
bool | isNaN (float x) |
bool | isNaN (int x) |
bool | isNaN (uint64 x) |
int | iMod3 (int x) |
float | uniformRandom (float low=0.0f, float hi=1.0f) |
float | gaussRandom (float mean=0.0f, float stdev=1.0f) |
template<class T > | |
T | pow5 (T x) |
template<class T > | |
T | min (const T &x, const T &y) |
template<class T > | |
T | min (const T &x, const T &y, const T &z) |
template<class T > | |
T | min (const T &x, const T &y, const T &z, const T &w) |
template<class T > | |
T | max (const T &x, const T &y) |
template<class T > | |
T | max (const T &x, const T &y, const T &z) |
template<class T > | |
T | max (const T &x, const T &y, const T &z, const T &w) |
int | iMin (int x, int y) |
int | iMax (int x, int y) |
double | sumSquares (double x, double y) |
double | sumSquares (double x, double y, double z) |
double | distance (double x, double y) |
double | distance (double x, double y, double z) |
int | highestBit (uint32 x) |
bool | fuzzyEq (double a, double b) |
bool | fuzzyNe (double a, double b) |
bool | fuzzyGt (double a, double b) |
bool | fuzzyGe (double a, double b) |
bool | fuzzyLt (double a, double b) |
bool | fuzzyLe (double a, double b) |
float | rsq (float x) |
int | ceilPow2 (unsigned int in) |
int | pow2 (unsigned int x) |
double | log2 (double x) |
float | log2 (float x) |
double | log2 (int x) |
bool | isPow2 (int num) |
bool | isPow2 (uint64 num) |
bool | isOdd (int num) |
bool | isEven (int num) |
double | toRadians (double deg) |
double | toDegrees (double rad) |
bool | any (float x) |
bool | all (float x) |
float | normalize (float v) |
float | dot (float a, float b) |
float | mul (float a, float b) |
double | exp2 (double x) |
float | exp2 (float x) |
double | rsqrt (double x) |
float | rsqrt (float x) |
double | sinc (double x) |
float | wrap (float t, float lo, float hi) |
double | wrap (double t, double lo, double hi) |
double | wrap (double t, double hi) |
bool | isFinite (float x) |
float | acos (float fValue) |
float | sign (float fValue) |
float | square (float x) |
int | square (int x) |
float | sumSquares (float x, float y) |
float | sumSquares (float x, float y, float z) |
float | distance (float x, float y) |
float | distance (float x, float y, float z) |
bool | isPow2 (uint32 x) |
float | toRadians (float deg) |
float | toDegrees (float rad) |
float | toRadians (int deg) |
float | toDegrees (int rad) |
double | eps (double a, double b) |
float | eps (float a, float b) |
bool | fuzzyEq (float a, float b) |
uint32 | flipEndian32 (const uint32 x) |
uint16 | flipEndian16 (const uint16 x) |
float | smoothstep (float edge0, float edge1, float x) |
float | smootherstep (float edge0, float edge1, float x) |
float | signedPow (float b, float e) |
double | signedPow (double b, double e) |
template<class Class > | |
void | _internal_runConcurrently2DHelper (const Vector2int32 &start, const Vector2int32 &upTo, Class *object, void(Class::*method1)(int x, int y), void(Class::*method2)(int x, int y, int threadID), int maxThreads) |
uint32_t | superFastHash (const void *_data, size_t numBytes) |
A hash function that is faster than CRC32 for arbitrary long strings [From] http://www.azillionmonkeys.com/qed/hash.html by Paul Hsieh. More... | |
uint32_t | wangHash6432Shift (int64 key) |
void | logPrintf (const char *fmt,...) |
void | logLazyPrintf (const char *fmt,...) |
Vector3 | operator* (const Vector3 &rkPoint, const Matrix3 &rkMatrix) |
std::ostream & | operator<< (std::ostream &os, const NetAddress &) |
bool | operator== (const NetAddress &a, const NetAddress &b) |
bool | operator!= (const NetAddress &a, const NetAddress &b) |
template<class T > | |
bool | isNull (const Pointer< T > &p) |
template<class T > | |
bool | notNull (const Pointer< T > &p) |
int | prompt (const char *windowTitle, const char *promptx, const char **choice, int numChoices, bool useGui) |
int | prompt (const char *windowTitle, const char *promptx, const char **choice, int numChoices) |
void | msgBox (const std::string &message, const std::string &title="Message") |
Quat | exp (const Quat &q) |
Quat | log (const Quat &q) |
G3D::Quat | operator* (double s, const G3D::Quat &q) |
G3D::Quat | operator* (float s, const G3D::Quat &q) |
template<class T > | |
bool | isNull (const ReferenceCountedPointer< T > &ptr) |
template<class T > | |
bool | notNull (const ReferenceCountedPointer< T > &ptr) |
template<class T > | |
bool | isNull (const T *ptr) |
template<class T > | |
bool | notNull (const T *ptr) |
void | serialize (const std::string &s, BinaryOutput &b) |
void | deserialize (std::string &s, BinaryInput &b) |
void | serialize (const int32 &i, BinaryOutput &b) |
void | deserialize (int32 &i, BinaryInput &b) |
void | serialize (const uint32 &i, BinaryOutput &b) |
void | deserialize (uint32 &i, BinaryInput &b) |
void | serialize (const bool &i, BinaryOutput &b) |
void | deserialize (bool &i, BinaryInput &b) |
void | serialize (const float32 &f, BinaryOutput &b) |
void | deserialize (float32 &f, BinaryInput &b) |
void | serialize (const float64 &f, BinaryOutput &b) |
void | deserialize (float64 &f, BinaryInput &b) |
template<typename T > | |
void | serialize (const Array< T > &array, BinaryOutput &b) |
template<typename T > | |
void | deserialize (Array< T > &array, BinaryInput &b) |
template<class XType , class YType > | |
YType | linearSpline (double x, const XType *controlX, const YType *controlY, int numControl) |
template<class YType > | |
YType | cyclicCatmullRomSpline (double t, const YType *controlY, int numPoints) |
template<class YType > | |
YType | cyclicCatmullRomSpline (double t, const Array< YType > &controlY) |
void | parseCommaSeparated (const std::string s, Array< std::string > &array, bool stripQuotes=true) |
size_t | findSlash (const std::string &f, size_t start=0) |
size_t | maxNotNPOS (size_t i, size_t j) |
Returns the larger string index, ignoring std::string::npos. More... | |
size_t | findLastSlash (const std::string &f, size_t start=std::string::npos) |
std::string | replace (const std::string &s, const std::string &pattern, const std::string &replacement) |
bool | isValidIdentifier (const std::string &s) |
bool | beginsWith (const std::string &test, const std::string &pattern) |
Returns true if the test string begins with the pattern string. More... | |
bool | endsWith (const std::string &test, const std::string &pattern) |
Returns true if the test string ends with the pattern string. More... | |
std::string | wordWrap (const std::string &input, int numCols) |
Produces a new string that is the input string wrapped at a certain number of columns (where the line is broken at the latest space before the column limit.) Platform specific NEWLINEs are inserted to wrap. More... | |
int | stringCompare (const std::string &s1, const std::string &s2) |
int | stringPtrCompare (const std::string *s1, const std::string *s2) |
std::string | toUpper (const std::string &x) |
std::string | toLower (const std::string &x) |
G3D::Array< std::string > | stringSplit (const std::string &x, char splitChar) |
std::string | stringJoin (const G3D::Array< std::string > &a, char joinChar) |
std::string | stringJoin (const G3D::Array< std::string > &a, const std::string &joinStr) |
std::string | trimWhitespace (const std::string &s) |
bool | isWhiteSpace (const unsigned char c) |
bool | isNewline (const unsigned char c) |
bool | isDigit (const unsigned char c) |
bool | isLetter (const unsigned char c) |
bool | isSlash (const unsigned char c) |
bool | isQuote (const unsigned char c) |
int | countNewlines (const std::string &s) |
std::string | license () |
void | deserialize (bool &b, TextInput &ti) |
void | deserialize (int &b, TextInput &ti) |
void | deserialize (uint8 &b, TextInput &ti) |
void | deserialize (double &b, TextInput &ti) |
void | deserialize (float &b, TextInput &ti) |
void | deserialize (std::string &b, TextInput &ti) |
void | serialize (const bool &b, TextOutput &to) |
void | serialize (const int &b, TextOutput &to) |
void | serialize (const uint8 &b, TextOutput &to) |
void | serialize (const double &b, TextOutput &to) |
void | serialize (const float &b, TextOutput &to) |
void | serialize (const std::string &b, TextOutput &to) |
void | serialize (const char *b, TextOutput &to) |
unorm16 (uint16 b) | |
static unorm16 | fromBits (uint16 b) |
static unorm16 | reinterpretFrom (uint16 b) |
unorm16 () | |
unorm16 (const unorm16 &other) | |
unorm16 (const class Any &a) | |
class Any | toAny () const |
unorm16 (float f) | |
unorm16 (double f) | |
operator float () const | |
operator double () const | |
static unorm16 | one () |
static unorm16 | zero () |
uint16 | bits () const |
Returns the underlying bits in this representation. Equivalent to: More... | |
uint16 | reinterpretAsUInt16 () const |
Returns the underlying bits in this representation. Equivalent to: More... | |
bool | operator> (const unorm16 other) const |
bool | operator< (const unorm16 other) const |
bool | operator>= (const unorm16 other) const |
bool | operator<= (const unorm16 other) const |
bool | operator== (const unorm16 other) const |
bool | operator!= (const unorm16 other) const |
unorm16 | operator+ (const unorm16 other) const |
unorm16 & | operator+= (const unorm16 other) |
unorm16 | operator- (const unorm16 other) const |
unorm16 & | operator-= (const unorm16 other) |
unorm16 | operator* (const int i) const |
unorm16 & | operator*= (const int i) |
unorm16 | operator/ (const int i) const |
unorm16 & | operator/= (const int i) |
unorm16 | operator<< (const int i) const |
unorm16 & | operator<<= (const int i) |
unorm16 | operator>> (const int i) const |
unorm16 & | operator>>= (const int i) |
unorm8 (uint8 b) | |
static unorm8 | fromBits (uint8 b) |
static unorm8 | reinterpretFrom (uint8 b) |
unorm8 () | |
unorm8 (const unorm8 &other) | |
unorm8 (float f) | |
unorm8 (double f) | |
static unorm8 | one () |
static unorm8 | zero () |
uint8 | reinterpretAsUInt8 () const |
Returns the underlying bits in this representation. Equivalent to: More... | |
bool | operator> (const unorm8 other) const |
bool | operator< (const unorm8 other) const |
bool | operator>= (const unorm8 other) const |
bool | operator<= (const unorm8 other) const |
bool | operator== (const unorm8 other) const |
bool | operator!= (const unorm8 other) const |
unorm8 | operator+ (const unorm8 other) const |
unorm8 & | operator+= (const unorm8 other) |
unorm8 | operator- (const unorm8 other) const |
unorm8 & | operator-= (const unorm8 other) |
Vector2 | operator* (double s, const Vector2 &v) |
Vector2 | operator* (float s, const Vector2 &v) |
Vector2 | operator* (int s, const Vector2 &v) |
void | serialize (const Vector2 &v, class BinaryOutput &b) |
void | deserialize (Vector2 &v, class BinaryInput &b) |
bool | operator> (const Vector2int16 &) const |
bool | operator<= (const Vector2int16 &) const |
bool | operator>= (const Vector2int16 &) const |
Vector2int16 () | |
Vector2int16 (G3D::int16 _x, G3D::int16 _y) | |
Vector2int16 (const class Vector2 &v) | |
Vector2int16 (class BinaryInput &bi) | |
Vector2int16 (const class Any &a) | |
Vector2int16 (const class Vector2int32 &v) | |
Vector2int16 & | operator= (const Any &a) |
G3D::int16 & | operator[] (int i) |
Vector2int16 | operator+ (const Vector2int16 &other) const |
Vector2int16 | operator- (const Vector2int16 &other) const |
Vector2int16 | operator* (const Vector2int16 &other) const |
Vector2int16 | operator- () const |
Vector2int16 & | operator+= (const Vector2int16 &other) |
bool | isZero () const |
Vector2int16 & | operator-= (const Vector2int16 &other) |
Vector2int16 & | operator*= (const Vector2int16 &other) |
Vector2int16 | clamp (const Vector2int16 &lo, const Vector2int16 &hi) |
bool | operator== (const Vector2int16 &rkVector) const |
bool | operator!= (const Vector2int16 &rkVector) const |
Vector2int16 | max (const Vector2int16 &v) const |
Vector2int16 | min (const Vector2int16 &v) const |
void | serialize (class BinaryOutput &bo) const |
void | deserialize (class BinaryInput &bi) |
bool | operator> (const Vector2int32 &) const |
bool | operator<= (const Vector2int32 &) const |
bool | operator>= (const Vector2int32 &) const |
Vector2int32 () | |
Vector2int32 (G3D::int32 _x, G3D::int32 _y) | |
Vector2int32 (const class Vector2 &v) | |
Vector2int32 (class BinaryInput &bi) | |
Vector2int32 (const class Vector2int16 &v) | |
Vector2int32 | operator+ (const Vector2int32 &other) const |
Vector2int32 | operator- (const Vector2int32 &other) const |
Vector2int32 | operator* (const Vector2int32 &other) const |
Vector2int32 & | operator+= (const Vector2int32 &other) |
Vector2int32 & | operator-= (const Vector2int32 &other) |
Vector2int32 & | operator*= (const Vector2int32 &other) |
Vector2int32 | clamp (const Vector2int32 &lo, const Vector2int32 &hi) |
bool | operator== (const Vector2int32 &other) const |
bool | operator!= (const Vector2int32 &other) const |
Vector2int32 | max (const Vector2int32 &v) const |
Vector2int32 | min (const Vector2int32 &v) const |
bool | operator> (const Vector2unorm16 &) const |
bool | operator<= (const Vector2unorm16 &) const |
bool | operator>= (const Vector2unorm16 &) const |
Vector2unorm16 () | |
Vector2unorm16 (G3D::unorm16 _x, G3D::unorm16 _y) | |
Vector2unorm16 (float _x, float _y) | |
Vector2unorm16 (const class Vector2 &v) | |
Vector2unorm16 (class BinaryInput &bi) | |
Vector2unorm16 (const class Any &a) | |
bool | operator== (const Vector2unorm16 &rkVector) const |
bool | operator!= (const Vector2unorm16 &rkVector) const |
size_t | hashCode () const |
G3D::Vector3 | operator* (float s, const G3D::Vector3 &v) |
G3D::Vector3 | operator* (double s, const G3D::Vector3 &v) |
G3D::Vector3 | operator* (int s, const G3D::Vector3 &v) |
std::ostream & | operator<< (std::ostream &os, const Vector3 &) |
void | serialize (const Vector3::Axis &a, class BinaryOutput &bo) |
void | deserialize (Vector3::Axis &a, class BinaryInput &bo) |
void | serialize (const Vector3 &v, class BinaryOutput &b) |
void | deserialize (Vector3 &v, class BinaryInput &b) |
bool | operator> (const Vector3int16 &) const |
bool | operator<= (const Vector3int16 &) const |
bool | operator>= (const Vector3int16 &) const |
Vector3int16 () | |
Vector3int16 (G3D::int16 _x, G3D::int16 _y, G3D::int16 _z) | |
Vector3int16 (const class Vector3 &v) | |
Vector3int16 (class BinaryInput &bi) | |
Vector3int16 | operator+ (const Vector3int16 &other) const |
Vector3int16 | operator- (const Vector3int16 &other) const |
Vector3int16 | operator* (const Vector3int16 &other) const |
Vector3int16 & | operator+= (const Vector3int16 &other) |
Vector3int16 & | operator-= (const Vector3int16 &other) |
Vector3int16 & | operator*= (const Vector3int16 &other) |
static Vector3int16 | floor (const Vector3 &v) |
static Vector3int16 | ceil (const Vector3 &v) |
bool | operator== (const Vector3int16 &rkVector) const |
bool | operator!= (const Vector3int16 &rkVector) const |
int | dot (const Vector3int16 &v) const |
Vector3int16 | max (const Vector3int16 &v) const |
Vector3int16 | min (const Vector3int16 &v) const |
std::string | toString () const |
Vector3int16 | operator>> (const Vector3int16 &v) const |
Vector3int16 | operator<< (const Vector3int16 &v) const |
Vector3int16 | operator& (int16 i) const |
Vector3int16 | operator& (const Vector3int16 &v) const |
bool | operator> (const Vector3int32 &) const |
bool | operator<= (const Vector3int32 &) const |
bool | operator>= (const Vector3int32 &) const |
Vector3int32 () | |
Vector3int32 (int _x, int _y, int _z) | |
Vector3int32 (const class Vector2int32 &v, int _z) | |
Vector3int32 (const class Vector2int16 &v, int _z) | |
Vector3int32 (const class Vector3int16 &v) | |
Vector3int32 (const Any &any) | |
Vector3int32 (const class Vector3 &v) | |
Vector3int32 (class BinaryInput &bi) | |
static Vector3int32 | truncate (const class Vector3 &v) |
bool | nonZero () const |
Vector3int32 | operator+ (const Vector3int32 &other) const |
Vector3int32 | operator- (const Vector3int32 &other) const |
Vector3int32 | operator* (const Vector3int32 &other) const |
Vector3int32 | operator/ (const Vector3int32 &other) const |
Vector3int32 & | operator+= (const Vector3int32 &other) |
Vector3int32 & | operator-= (const Vector3int32 &other) |
Vector3int32 & | operator*= (const Vector3int32 &other) |
bool | operator== (const Vector3int32 &rkVector) const |
bool | operator!= (const Vector3int32 &rkVector) const |
Vector3int32 | max (const Vector3int32 &v) const |
Vector3int32 | min (const Vector3int32 &v) const |
Vector3int32 | operator>> (const Vector3int32 &v) const |
Vector3int32 | operator<< (const Vector3int32 &v) const |
Vector2int32 | xx () const |
Vector2int32 | yx () const |
Vector2int32 | zx () const |
Vector2int32 | xy () const |
Vector2int32 | yy () const |
Vector2int32 | zy () const |
Vector2int32 | xz () const |
Vector2int32 | yz () const |
Vector2int32 | zz () const |
Vector3int32 | iFloor (const Vector3 &) |
void | serialize (const Vector4 &v, class BinaryOutput &b) |
void | deserialize (Vector4 &v, class BinaryInput &b) |
Matrix4 | mul (const Matrix4 &a, const Matrix4 &b) |
Vector4 | mul (const Matrix4 &m, const Vector4 &v) |
Vector3 | mul (const Matrix3 &m, const Vector3 &v) |
Matrix3 | mul (const Matrix3 &a, const Matrix3 &b) |
float | dot (const Vector2 &a, const Vector2 &b) |
float | dot (const Vector3 &a, const Vector3 &b) |
float | dot (const Vector4 &a, const Vector4 &b) |
Vector2 | normalize (const Vector2 &v) |
Vector3 | normalize (const Vector3 &v) |
Vector4 | normalize (const Vector4 &v) |
Vector2 | abs (const Vector2 &v) |
Vector3 | abs (const Vector3 &v) |
Vector4 | abs (const Vector4 &v) |
bool | all (const Vector2 &v) |
bool | all (const Vector3 &v) |
bool | all (const Vector4 &v) |
bool | any (const Vector2 &v) |
bool | any (const Vector3 &v) |
bool | any (const Vector4 &v) |
Vector2 | clamp (const Vector2 &v, const Vector2 &a, const Vector2 &b) |
Vector3 | clamp (const Vector3 &v, const Vector3 &a, const Vector3 &b) |
Vector4 | clamp (const Vector4 &v, const Vector4 &a, const Vector4 &b) |
Vector2 | lerp (const Vector2 &v1, const Vector2 &v2, float f) |
Vector3 | lerp (const Vector3 &v1, const Vector3 &v2, float f) |
Vector4 | lerp (const Vector4 &v1, const Vector4 &v2, float f) |
Color1 | lerp (const Color1 &v1, const Color1 &v2, float f) |
Color3 | lerp (const Color3 &v1, const Color3 &v2, float f) |
Color4 | lerp (const Color4 &v1, const Color4 &v2, float f) |
Vector3 | cross (const Vector3 &v1, const Vector3 &v2) |
double | determinant (const Matrix3 &m) |
double | determinant (const Matrix4 &m) |
Vector2 | min (const Vector2 &v1, const Vector2 &v2) |
Vector3 | min (const Vector3 &v1, const Vector3 &v2) |
Vector4 | min (const Vector4 &v1, const Vector4 &v2) |
Color3 | min (const Color3 &v1, const Color3 &v2) |
Color4 | min (const Color4 &v1, const Color4 &v2) |
Vector2 | max (const Vector2 &v1, const Vector2 &v2) |
Vector3 | max (const Vector3 &v1, const Vector3 &v2) |
Vector4 | max (const Vector4 &v1, const Vector4 &v2) |
Color3 | max (const Color3 &v1, const Color3 &v2) |
Color4 | max (const Color4 &v1, const Color4 &v2) |
Vector2 | sign (const Vector2 &v) |
Vector3 | sign (const Vector3 &v) |
Vector4 | sign (const Vector4 &v) |
float | length (float v) |
float | length (const Vector2 &v) |
float | length (const Vector3 &v) |
float | length (const Vector4 &v) |
Color3 | log (const Color3 &c) |
static bool | isContainerType (Any::Type &t) |
static char | toLower (char c) |
static void | getDeserializeSettings (TextInput::Settings &settings) |
static bool | needsQuotes (const std::string &s) |
static bool | isOpen (const char c) |
static bool | isClose (const char c) |
static bool | isSeparator (char c) |
static Any::Type | findType (TextInput &ti, const char closeSymbol) |
static uint32 | readUInt32FromBuffer (const uint8 *data, bool swapBytes) |
static bool | isNewline (char c) |
static int | findRayCapsuleIntersectionAux (const Vector3 &rkOrigin, const Vector3 &rkDirection, const Capsule &rkCapsule, double afT[2]) |
static bool | findRayCapsuleIntersection (const Ray &rkRay, const Capsule &rkCapsule, int &riQuantity, Vector3 akPoint[2]) |
static bool | planeBoxOverlap (const Vector3 &normal, const Vector3 &vert, const Vector3 &maxbox) |
static void | md5_init (md5_state_t *pms) |
static void | md5_append (md5_state_t *pms, const md5_byte_t *data, int nbytes) |
static void | md5_finish (md5_state_t *pms, md5_byte_t digest[16]) |
static void | md5_process (md5_state_t *pms, const md5_byte_t *data) |
static int | fixslash (int c) |
std::string | resolveFilename (const std::string &filename) |
int64 | fileLength (const std::string &filename) |
void | createDirectory (const std::string &dir) |
void | copyFile (const std::string &source, const std::string &dest) |
static void | getFileOrDirListNormal (const std::string &filespec, Array< std::string > &files, bool wantFiles, bool includePath) |
static void | getFileOrDirListZip (const std::string &path, const std::string &prefix, Array< std::string > &files, bool wantFiles, bool includePath) |
static void | determineFileOrDirList (const std::string &filespec, Array< std::string > &files, bool wantFiles, bool includePath) |
void | getFiles (const std::string &filespec, Array< std::string > &files, bool includePath) |
void | getDirs (const std::string &filespec, Array< std::string > &files, bool includePath) |
bool | isZipfile (const std::string &filename) |
bool | isDirectory (const std::string &filename) |
bool | fileIsNewer (const std::string &src, const std::string &dst) |
std::string __cdecl | format (const char *fmt,...) |
DEFINE_TEXTUREFORMAT_METHOD (L8, 1, UNCOMP_FORMAT, GL_LUMINANCE8, GL_LUMINANCE, 8, 0, 0, 0, 0, 0, 0, 8, 8, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, CODE_L8, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (L16, 1, UNCOMP_FORMAT, GL_LUMINANCE16, GL_LUMINANCE, 16, 0, 0, 0, 0, 0, 0, 16, 16, GL_UNSIGNED_SHORT, OPAQUE_FORMAT, INTEGER_FORMAT, CODE_L16, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (L16F, 1, UNCOMP_FORMAT, GL_LUMINANCE16F_ARB, GL_LUMINANCE, 16, 0, 0, 0, 0, 0, 0, 16, 16, GL_HALF_FLOAT, OPAQUE_FORMAT, FLOATING_POINT_FORMAT, CODE_L16F, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (L32F, 1, UNCOMP_FORMAT, GL_LUMINANCE32F_ARB, GL_LUMINANCE, 32, 0, 0, 0, 0, 0, 0, 32, 32, GL_FLOAT, OPAQUE_FORMAT, FLOATING_POINT_FORMAT, CODE_L32F, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (A8, 1, UNCOMP_FORMAT, GL_ALPHA8, GL_ALPHA, 0, 8, 0, 0, 0, 0, 0, 8, 8, GL_UNSIGNED_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, CODE_A8, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (A16, 1, UNCOMP_FORMAT, GL_ALPHA16, GL_ALPHA, 0, 16, 0, 0, 0, 0, 0, 16, 16, GL_UNSIGNED_SHORT, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, CODE_A16, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (A16F, 1, UNCOMP_FORMAT, GL_ALPHA16F_ARB, GL_ALPHA, 0, 16, 0, 0, 0, 0, 0, 16, 16, GL_HALF_FLOAT, CLEAR_FORMAT, FLOATING_POINT_FORMAT, CODE_A16F, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (A32F, 1, UNCOMP_FORMAT, GL_ALPHA32F_ARB, GL_ALPHA, 0, 32, 0, 0, 0, 0, 0, 32, 32, GL_FLOAT, CLEAR_FORMAT, FLOATING_POINT_FORMAT, CODE_A32F, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (LA4, 2, UNCOMP_FORMAT, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE_ALPHA, 4, 4, 0, 0, 0, 0, 0, 8, 8, GL_UNSIGNED_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, CODE_LA4, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (LA8, 2, UNCOMP_FORMAT, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE_ALPHA, 8, 8, 0, 0, 0, 0, 0, 16, 16, GL_UNSIGNED_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, CODE_LA8, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (LA16, 2, UNCOMP_FORMAT, GL_LUMINANCE16_ALPHA16, GL_LUMINANCE_ALPHA, 16, 16, 0, 0, 0, 0, 0, 16 *2, 16 *2, GL_UNSIGNED_SHORT, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, CODE_LA16, COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (LA16F, 2, UNCOMP_FORMAT, GL_LUMINANCE_ALPHA16F_ARB, GL_LUMINANCE_ALPHA, 16, 16, 0, 0, 0, 0, 0, 16 *2, 16 *2, GL_HALF_FLOAT, CLEAR_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_LA16F, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (LA32F, 2, UNCOMP_FORMAT, GL_LUMINANCE_ALPHA32F_ARB, GL_LUMINANCE_ALPHA, 32, 32, 0, 0, 0, 0, 0, 32 *2, 32 *2, GL_FLOAT, CLEAR_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_LA32F, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (BGR8, 3, UNCOMP_FORMAT, GL_RGB8, GL_BGR, 0, 0, 8, 8, 8, 0, 0, 32, 24, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_BGR8, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (BGRA8, 4, UNCOMP_FORMAT, GL_RGBA8, GL_BGRA, 0, 8, 8, 8, 8, 0, 0, 32, 32, GL_UNSIGNED_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_BGRA8, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R8, 1, UNCOMP_FORMAT, GL_R8, GL_RED, 0, 0, 8, 0, 0, 0, 0, 8, 8, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_R8, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R8I, 1, UNCOMP_FORMAT, GL_R8I, GL_RED_INTEGER, 0, 0, 8, 0, 0, 0, 0, 8, 8, GL_BYTE, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_R8I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R8UI, 1, UNCOMP_FORMAT, GL_R8UI, GL_RED_INTEGER, 0, 0, 8, 0, 0, 0, 0, 8, 8, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_R8UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R16, 1, UNCOMP_FORMAT, GL_R16, GL_RED, 0, 0, 16, 0, 0, 0, 0, 16, 16, GL_UNSIGNED_SHORT, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_R16, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R16I, 1, UNCOMP_FORMAT, GL_R16I, GL_RED_INTEGER, 0, 0, 16, 0, 0, 0, 0, 16, 16, GL_SHORT, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_R16I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R16UI, 1, UNCOMP_FORMAT, GL_R16UI, GL_RED_INTEGER, 0, 0, 16, 0, 0, 0, 0, 16, 16, GL_UNSIGNED_SHORT, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_R16UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R32I, 1, UNCOMP_FORMAT, GL_R32I, GL_RED_INTEGER, 0, 0, 32, 0, 0, 0, 0, 32, 32, GL_INT, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_R32I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R32UI, 1, UNCOMP_FORMAT, GL_R32UI, GL_RED_INTEGER, 0, 0, 32, 0, 0, 0, 0, 32, 32, GL_UNSIGNED_INT, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_R32UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RG8, 2, UNCOMP_FORMAT, GL_RG8, GL_RG, 0, 0, 8, 8, 0, 0, 0, 16, 16, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RG8, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RG8I, 2, UNCOMP_FORMAT, GL_RG8I, GL_RG_INTEGER, 0, 0, 8, 8, 0, 0, 0, 16, 16, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RG8I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RG8UI, 2, UNCOMP_FORMAT, GL_RG8UI, GL_RG_INTEGER, 0, 0, 8, 8, 0, 0, 0, 16, 16, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RG8UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RG16, 2, UNCOMP_FORMAT, GL_RG16, GL_RG, 0, 0, 16, 16, 0, 0, 0, 16 *2, 16 *2, GL_UNSIGNED_SHORT, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RG16, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RG16I, 2, UNCOMP_FORMAT, GL_RG16I, GL_RG_INTEGER, 0, 0, 16, 16, 0, 0, 0, 16 *2, 16 *2, GL_SHORT, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RG16I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RG16UI, 2, UNCOMP_FORMAT, GL_RG16UI, GL_RG_INTEGER, 0, 0, 16, 16, 0, 0, 0, 16 *2, 16 *2, GL_UNSIGNED_SHORT, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RG16UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R16F, 1, UNCOMP_FORMAT, GL_R16F, GL_RED, 0, 0, 16, 0, 0, 0, 0, 16, 16, GL_HALF_FLOAT, OPAQUE_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_R16F, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RG16F, 2, UNCOMP_FORMAT, GL_RG16F, GL_RG, 0, 0, 16, 16, 0, 0, 0, 32, 32, GL_HALF_FLOAT, OPAQUE_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_RG16F, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RG32I, 2, UNCOMP_FORMAT, GL_RG32I, GL_RG_INTEGER, 0, 0, 32, 32, 0, 0, 0, 32 *2, 32 *2, GL_INT, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RG32I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RG32UI, 2, UNCOMP_FORMAT, GL_RG32UI, GL_RG_INTEGER, 0, 0, 32, 32, 0, 0, 0, 32 *2, 32 *2, GL_UNSIGNED_INT, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RG32UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R32F, 1, UNCOMP_FORMAT, GL_R32F, GL_RED, 0, 0, 32, 0, 0, 0, 0, 32, 32, GL_FLOAT, OPAQUE_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_R32F, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RG32F, 2, UNCOMP_FORMAT, GL_RG32F, GL_RG, 0, 0, 32, 32, 0, 0, 0, 64, 64, GL_FLOAT, OPAQUE_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_RG32F, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB5, 3, UNCOMP_FORMAT, GL_RGB5, GL_RGBA, 0, 0, 5, 5, 5, 0, 0, 16, 16, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGB5, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB5A1, 4, UNCOMP_FORMAT, GL_RGB5_A1, GL_RGBA, 0, 1, 5, 5, 5, 0, 0, 16, 16, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGB5A1, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB8, 3, UNCOMP_FORMAT, GL_RGB8, GL_RGB, 0, 0, 8, 8, 8, 0, 0, 32, 24, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGB8, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB10, 3, UNCOMP_FORMAT, GL_RGB10, GL_RGB, 0, 0, 10, 10, 10, 0, 0, 32, 10 *3, GL_UNSIGNED_SHORT, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGB10, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB10A2, 4, UNCOMP_FORMAT, GL_RGB10_A2, GL_RGBA, 0, 2, 10, 10, 10, 0, 0, 32, 32, GL_UNSIGNED_INT_10_10_10_2, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGB10A2, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB16, 3, UNCOMP_FORMAT, GL_RGB16, GL_RGB, 0, 0, 16, 16, 16, 0, 0, 16 *3, 16 *3, GL_UNSIGNED_SHORT, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGB16, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB16F, 3, UNCOMP_FORMAT, GL_RGB16F_ARB, GL_RGB, 0, 0, 16, 16, 16, 0, 0, 16 *3, 16 *3, GL_HALF_FLOAT, OPAQUE_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_RGB16F, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB32F, 3, UNCOMP_FORMAT, GL_RGB32F_ARB, GL_RGB, 0, 0, 32, 32, 32, 0, 0, 32 *3, 32 *3, GL_FLOAT, OPAQUE_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_RGB32F, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA8, 4, UNCOMP_FORMAT, GL_RGBA8, GL_RGBA, 0, 8, 8, 8, 8, 0, 0, 32, 32, GL_UNSIGNED_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGBA8, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA16, 4, UNCOMP_FORMAT, GL_RGBA16, GL_RGBA, 0, 16, 16, 16, 16, 0, 0, 16 *4, 16 *4, GL_UNSIGNED_SHORT, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGBA16, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA16F, 4, UNCOMP_FORMAT, GL_RGBA16F_ARB, GL_RGBA, 0, 16, 16, 16, 16, 0, 0, 16 *4, 16 *4, GL_HALF_FLOAT, CLEAR_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_RGBA16F, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA32F, 4, UNCOMP_FORMAT, GL_RGBA32F_ARB, GL_RGBA, 0, 32, 32, 32, 32, 0, 0, 32 *4, 32 *4, GL_FLOAT, CLEAR_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_RGBA32F, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA16I, 4, UNCOMP_FORMAT, GL_RGBA16I, GL_RGBA_INTEGER, 0, 16, 16, 16, 16, 0, 0, 16 *4, 16 *4, GL_SHORT, CLEAR_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RGBA16I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA16UI, 4, UNCOMP_FORMAT, GL_RGBA16UI, GL_RGBA_INTEGER, 0, 16, 16, 16, 16, 0, 0, 16 *4, 16 *4, GL_UNSIGNED_SHORT, CLEAR_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RGBA16UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB32I, 3, UNCOMP_FORMAT, GL_RGB32I, GL_RGBA_INTEGER, 0, 32, 32, 32, 0, 0, 0, 32 *3, 32 *3, GL_INT, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RGB32I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB32UI, 3, UNCOMP_FORMAT, GL_RGB32UI, GL_RGBA_INTEGER, 0, 32, 32, 32, 0, 0, 0, 32 *3, 32 *3, GL_UNSIGNED_INT, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RGB32UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA32I, 4, UNCOMP_FORMAT, GL_RGBA32I, GL_RGBA_INTEGER, 0, 32, 32, 32, 32, 0, 0, 32 *4, 32 *4, GL_INT, CLEAR_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RGBA32I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA32UI, 4, UNCOMP_FORMAT, GL_RGBA32UI, GL_RGBA_INTEGER, 0, 32, 32, 32, 32, 0, 0, 32 *4, 32 *4, GL_UNSIGNED_INT, CLEAR_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RGBA32UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (R11G11B10F, 3, UNCOMP_FORMAT, GL_R11F_G11F_B10F_EXT, GL_RGB, 0, 0, 11, 11, 10, 0, 0, 32, 32, GL_FLOAT, OPAQUE_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_R11G11B10F, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB9E5F, 3, UNCOMP_FORMAT, GL_RGB9_E5_EXT, GL_RGB, 0, 0, 14, 14, 14, 0, 0, 32, 32, GL_FLOAT, OPAQUE_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_RGB9E5F, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB8I, 3, UNCOMP_FORMAT, GL_RGB8I_EXT, GL_RGB_INTEGER, 0, 0, 8, 8, 8, 0, 0, 32, 24, GL_BYTE, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RGB8I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB8UI, 3, UNCOMP_FORMAT, GL_RGB8UI_EXT, GL_RGB_INTEGER, 0, 0, 8, 8, 8, 0, 0, 32, 24, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RGB8UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA8I, 4, UNCOMP_FORMAT, GL_RGBA8I_EXT, GL_RGBA_INTEGER, 0, 8, 8, 8, 8, 0, 0, 32, 32, GL_BYTE, CLEAR_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RGBA8I, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA8UI, 4, UNCOMP_FORMAT, GL_RGBA8UI_EXT, GL_RGBA_INTEGER, 0, 8, 8, 8, 8, 0, 0, 32, 32, GL_UNSIGNED_BYTE, CLEAR_FORMAT, INTEGER_FORMAT, ImageFormat::CODE_RGBA8UI, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB8_SNORM, 3, UNCOMP_FORMAT, GL_RGB8_SNORM, GL_RGB, 0, 0, 8, 8, 8, 0, 0, 32, 32, GL_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGB8_SNORM, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA8_SNORM, 4, UNCOMP_FORMAT, GL_RGBA8_SNORM, GL_RGBA, 0, 8, 8, 8, 8, 0, 0, 32, 32, GL_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGBA8_SNORM, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB16_SNORM, 3, UNCOMP_FORMAT, GL_RGB16_SNORM, GL_RGB, 0, 0, 16, 16, 16, 0, 0, 64, 64, GL_SHORT, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGB16_SNORM, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA16_SNORM, 4, UNCOMP_FORMAT, GL_RGBA16_SNORM, GL_RGB, 0, 16, 16, 16, 16, 0, 0, 64, 64, GL_SHORT, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_RGBA16_SNORM, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGB_DXT1, 3, COMP_FORMAT, GL_COMPRESSED_RGB_S3TC_DXT1_EXT, GL_RGB, 0, 0, 0, 0, 0, 0, 0, 64, 64, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, OTHER, ImageFormat::CODE_RGB_DXT1, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA_DXT1, 4, COMP_FORMAT, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, GL_RGBA, 0, 0, 0, 0, 0, 0, 0, 64, 64, GL_UNSIGNED_BYTE, CLEAR_FORMAT, OTHER, ImageFormat::CODE_RGBA_DXT1, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA_DXT3, 4, COMP_FORMAT, GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, GL_RGBA, 0, 0, 0, 0, 0, 0, 0, 128, 128, GL_UNSIGNED_BYTE, CLEAR_FORMAT, OTHER, ImageFormat::CODE_RGBA_DXT3, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (RGBA_DXT5, 4, COMP_FORMAT, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, GL_RGBA, 0, 0, 0, 0, 0, 0, 0, 128, 128, GL_UNSIGNED_BYTE, CLEAR_FORMAT, OTHER, ImageFormat::CODE_RGBA_DXT5, ImageFormat::COLOR_SPACE_RGB) | |
DEFINE_TEXTUREFORMAT_METHOD (SRGB8, 3, UNCOMP_FORMAT, GL_SRGB8, GL_RGB, 0, 0, 8, 8, 8, 0, 0, 32, 24, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_SRGB8, ImageFormat::COLOR_SPACE_SRGB) | |
DEFINE_TEXTUREFORMAT_METHOD (SRGBA8, 4, UNCOMP_FORMAT, GL_SRGB8_ALPHA8, GL_RGBA, 0, 8, 8, 8, 8, 0, 0, 32, 24, GL_UNSIGNED_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_SRGBA8, ImageFormat::COLOR_SPACE_SRGB) | |
DEFINE_TEXTUREFORMAT_METHOD (SL8, 1, UNCOMP_FORMAT, GL_SLUMINANCE8, GL_LUMINANCE, 8, 0, 0, 0, 0, 0, 0, 8, 8, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_SL8, ImageFormat::COLOR_SPACE_SRGB) | |
DEFINE_TEXTUREFORMAT_METHOD (SLA8, 2, UNCOMP_FORMAT, GL_SLUMINANCE8_ALPHA8, GL_LUMINANCE_ALPHA, 8, 8, 0, 0, 0, 0, 0, 16, 16, GL_UNSIGNED_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_SLA8, ImageFormat::COLOR_SPACE_SRGB) | |
DEFINE_TEXTUREFORMAT_METHOD (SRGB_DXT1, 3, COMP_FORMAT, GL_COMPRESSED_SRGB_S3TC_DXT1_EXT, GL_RGB, 0, 0, 0, 0, 0, 0, 0, 64, 64, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, OTHER, ImageFormat::CODE_SRGB_DXT1, ImageFormat::COLOR_SPACE_SRGB) | |
DEFINE_TEXTUREFORMAT_METHOD (SRGBA_DXT1, 4, COMP_FORMAT, GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, GL_RGBA, 0, 0, 0, 0, 0, 0, 0, 64, 64, GL_UNSIGNED_BYTE, CLEAR_FORMAT, OTHER, ImageFormat::CODE_SRGBA_DXT1, ImageFormat::COLOR_SPACE_SRGB) | |
DEFINE_TEXTUREFORMAT_METHOD (SRGBA_DXT3, 4, COMP_FORMAT, GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, GL_RGBA, 0, 0, 0, 0, 0, 0, 0, 128, 128, GL_UNSIGNED_BYTE, CLEAR_FORMAT, OTHER, ImageFormat::CODE_SRGBA_DXT3, ImageFormat::COLOR_SPACE_SRGB) | |
DEFINE_TEXTUREFORMAT_METHOD (SRGBA_DXT5, 4, COMP_FORMAT, GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, GL_RGBA, 0, 0, 0, 0, 0, 0, 0, 128, 128, GL_UNSIGNED_BYTE, CLEAR_FORMAT, OTHER, ImageFormat::CODE_SRGBA_DXT5, ImageFormat::COLOR_SPACE_SRGB) | |
DEFINE_TEXTUREFORMAT_METHOD (DEPTH16, 1, UNCOMP_FORMAT, GL_DEPTH_COMPONENT16_ARB, GL_DEPTH_COMPONENT, 0, 0, 0, 0, 0, 16, 0, 16, 16, GL_UNSIGNED_SHORT, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_DEPTH16, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (DEPTH24, 1, UNCOMP_FORMAT, GL_DEPTH_COMPONENT24_ARB, GL_DEPTH_COMPONENT, 0, 0, 0, 0, 0, 24, 0, 32, 24, GL_UNSIGNED_INT, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_DEPTH24, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (DEPTH32, 1, UNCOMP_FORMAT, GL_DEPTH_COMPONENT32_ARB, GL_DEPTH_COMPONENT, 0, 0, 0, 0, 0, 32, 0, 32, 32, GL_UNSIGNED_INT, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_DEPTH32, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (DEPTH32F, 1, UNCOMP_FORMAT, GL_DEPTH_COMPONENT32_ARB, GL_DEPTH_COMPONENT, 0, 0, 0, 0, 0, 32, 0, 32, 32, GL_FLOAT, CLEAR_FORMAT, FLOATING_POINT_FORMAT, ImageFormat::CODE_DEPTH32F, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (STENCIL1, 1, UNCOMP_FORMAT, GL_STENCIL_INDEX1_EXT, GL_STENCIL_INDEX, 0, 0, 0, 0, 0, 0, 1, 1, 1, GL_UNSIGNED_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_STENCIL1, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (STENCIL4, 1, UNCOMP_FORMAT, GL_STENCIL_INDEX4_EXT, GL_STENCIL_INDEX, 0, 0, 0, 0, 0, 0, 4, 4, 4, GL_UNSIGNED_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_STENCIL4, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (STENCIL8, 1, UNCOMP_FORMAT, GL_STENCIL_INDEX8_EXT, GL_STENCIL_INDEX, 0, 0, 0, 0, 0, 0, 8, 8, 8, GL_UNSIGNED_BYTE, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_STENCIL8, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (STENCIL16, 1, UNCOMP_FORMAT, GL_STENCIL_INDEX16_EXT, GL_STENCIL_INDEX, 0, 0, 0, 0, 0, 0, 16, 16, 16, GL_UNSIGNED_SHORT, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_STENCIL16, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (DEPTH24_STENCIL8, 2, UNCOMP_FORMAT, GL_DEPTH24_STENCIL8_EXT, GL_DEPTH_STENCIL_EXT, 0, 0, 0, 0, 0, 24, 8, 32, 32, GL_UNSIGNED_INT_24_8, CLEAR_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_DEPTH24_STENCIL8, ImageFormat::COLOR_SPACE_NONE) | |
DEFINE_TEXTUREFORMAT_METHOD (YUV420_PLANAR, 3, UNCOMP_FORMAT, GL_NONE, GL_NONE, 0, 0, 0, 0, 0, 0, 0, 12, 12, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_YUV420_PLANAR, ImageFormat::COLOR_SPACE_YUV) | |
DEFINE_TEXTUREFORMAT_METHOD (YUV422, 3, UNCOMP_FORMAT, GL_NONE, GL_NONE, 0, 0, 0, 0, 0, 0, 0, 16, 16, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_YUV422, ImageFormat::COLOR_SPACE_YUV) | |
DEFINE_TEXTUREFORMAT_METHOD (YUV444, 3, UNCOMP_FORMAT, GL_NONE, GL_NONE, 0, 0, 0, 0, 0, 0, 0, 24, 24, GL_UNSIGNED_BYTE, OPAQUE_FORMAT, NORMALIZED_FIXED_POINT_FORMAT, ImageFormat::CODE_YUV444, ImageFormat::COLOR_SPACE_YUV) | |
DECLARE_CONVERT_FUNC (l8_to_rgb8) | |
DECLARE_CONVERT_FUNC (l32f_to_rgb8) | |
DECLARE_CONVERT_FUNC (rgb8_to_rgba8) | |
DECLARE_CONVERT_FUNC (rgb8_to_bgr8) | |
DECLARE_CONVERT_FUNC (rgb8_to_rgba32f) | |
DECLARE_CONVERT_FUNC (bgr8_to_rgb8) | |
DECLARE_CONVERT_FUNC (bgr8_to_rgba8) | |
DECLARE_CONVERT_FUNC (bgr8_to_rgba32f) | |
DECLARE_CONVERT_FUNC (rgba8_to_rgb8) | |
DECLARE_CONVERT_FUNC (rgba8_to_bgr8) | |
DECLARE_CONVERT_FUNC (rgba8_to_rgba32f) | |
DECLARE_CONVERT_FUNC (rgb32f_to_rgba32f) | |
DECLARE_CONVERT_FUNC (rgba32f_to_rgb8) | |
DECLARE_CONVERT_FUNC (rgba32f_to_rgba8) | |
DECLARE_CONVERT_FUNC (rgba32f_to_bgr8) | |
DECLARE_CONVERT_FUNC (rgba32f_to_rgb32f) | |
DECLARE_CONVERT_FUNC (rgba32f_to_bayer_rggb8) | |
DECLARE_CONVERT_FUNC (rgba32f_to_bayer_gbrg8) | |
DECLARE_CONVERT_FUNC (rgba32f_to_bayer_grbg8) | |
DECLARE_CONVERT_FUNC (rgba32f_to_bayer_bggr8) | |
DECLARE_CONVERT_FUNC (bayer_rggb8_to_rgba32f) | |
DECLARE_CONVERT_FUNC (bayer_gbrg8_to_rgba32f) | |
DECLARE_CONVERT_FUNC (bayer_grbg8_to_rgba32f) | |
DECLARE_CONVERT_FUNC (bayer_bggr8_to_rgba32f) | |
DECLARE_CONVERT_FUNC (rgb8_to_yuv420p) | |
DECLARE_CONVERT_FUNC (rgb8_to_yuv422) | |
DECLARE_CONVERT_FUNC (rgb8_to_yuv444) | |
DECLARE_CONVERT_FUNC (yuv420p_to_rgb8) | |
DECLARE_CONVERT_FUNC (yuv422_to_rgb8) | |
DECLARE_CONVERT_FUNC (yuv444_to_rgb8) | |
static ConvertFunc | findConverter (TextureFormat::Code sourceCode, TextureFormat::Code destCode, bool needsSourcePadding, bool needsDestPadding, bool needsInvertY) |
bool | conversionAvailable (const ImageFormat *srcFormat, int srcRowPadBits, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY=false) |
static void | l8_to_rgb8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | l32f_to_rgb8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgb8_to_rgba8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgb8_to_bgr8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgb8_to_rgba32f (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | bgr8_to_rgb8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | bgr8_to_rgba8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | bgr8_to_rgba32f (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgba8_to_rgb8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgba8_to_bgr8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgba8_to_rgba32f (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgb32f_to_rgba32f (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgba32f_to_rgb8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgba32f_to_rgba8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgba32f_to_bgr8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgba32f_to_rgb32f (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static uint32 | blendPixels (uint32 pixel1, uint32 pixel2) |
static void | rgb8_to_yuv420p (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgb8_to_yuv422 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgb8_to_yuv444 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | yuv420p_to_rgb8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | yuv422_to_rgb8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | yuv444_to_rgb8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static unorm8 | applyFilter (const unorm8 *I, int x, int y, int w, int h, const float filter[5][5]) |
static void | swapRedAndBlue (int N, Color3unorm8 *out) |
static void | rgb8_to_bayer_rggb8 (const int w, const int h, const unorm8 *src, unorm8 *dst) |
static void | rgb8_to_bayer_grbg8 (const int w, const int h, const unorm8 *src, unorm8 *dst) |
static void | rgb8_to_bayer_bggr8 (const int w, const int h, const unorm8 *src, unorm8 *dst) |
static void | rgb8_to_bayer_gbrg8 (const int w, const int h, const unorm8 *src, unorm8 *dst) |
static void | rgba32f_to_bayer_rggb8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgba32f_to_bayer_gbrg8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgba32f_to_bayer_grbg8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | rgba32f_to_bayer_bggr8 (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | bayer_rggb8_to_rgb8_mhc (int w, int h, const unorm8 *in, unorm8 *_out) |
static void | bayer_gbrg8_to_rgb8_mhc (int w, int h, const unorm8 *in, unorm8 *_out) |
static void | bayer_grbg8_to_rgb8_mhc (int w, int h, const unorm8 *in, unorm8 *_out) |
static void | bayer_bggr8_to_rgb8_mhc (int w, int h, const unorm8 *in, unorm8 *_out) |
static void | bayer_rggb8_to_rgba32f (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | bayer_gbrg8_to_rgba32f (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | bayer_grbg8_to_rgba32f (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static void | bayer_bggr8_to_rgba32f (const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
static double | pythag (double a, double b) |
Matrix3 | operator* (double fScalar, const Matrix3 &rkMatrix) |
Matrix3 | operator* (float fScalar, const Matrix3 &rkMatrix) |
Matrix3 | operator* (int fScalar, const Matrix3 &rkMatrix) |
static void | assignEdgeIndex (MeshAlg::Face &face, int e) |
static void | logSocketInfo (const SOCKET &sock) |
static int | selectOneReadSocket (const SOCKET &sock) |
static bool | readWaiting (const SOCKET &sock) |
static int | selectOneWriteSocket (const SOCKET &sock) |
const char * | errnoToString () |
static void | increaseBufferSize (SOCKET sock) |
static int | textPrompt (const char *windowTitle, const char *prompt, const char **choice, int numChoices) |
static bool | iswspace (int ch) |
static bool | checkForCPUID () |
static void | getG3DVersion (std::string &s) |
static G3DEndian | checkEndian () |
static std::string | computeAppName (const std::string &start) |
void | initMem () |
static void | var (TextOutput &t, const std::string &name, const std::string &val) |
static void | var (TextOutput &t, const std::string &name, const bool val) |
static void | var (TextOutput &t, const std::string &name, const int val) |
static void | toUpper (Set< std::string > &set) |
static const char * | tokenTypeToString (Token::Type t) |
static std::string | escape (const std::string &string) |
static void | addAndCarry (const uint64 &_a, const uint64 &_b, uint64 &carry, uint64 &result) |
void | multiplyAndCarry (const uint64 &_a, const uint64 &_b, uint64 &carry, uint64 &result) |
double | frand () |
static bool | atClose (TextInput &t, const std::string name) |
Variables | |
const bool | DONT_SHRINK_UNDERLYING_ARRAY = false |
const int | SORT_INCREASING = 1 |
const int | SORT_DECREASING = -1 |
const char * | NEWLINE = "\n" |
unorm16 | |
unorm8 | |
Vector2int16 | |
G3D::int16 | x |
G3D::int16 | y |
Vector2int32 | |
Vector2unorm16 | |
Vector3int16 | |
G3D::int16 | z |
Vector3int32 | |
static FileSystem * | common = NULL |
static Set< std::string > | _filesUsed |
static const std::string | nameArray [ImageFormat::CODE_NUM] |
static const bool | OPAQUE_FORMAT = true |
static const bool | CLEAR_FORMAT = false |
static const bool | COMP_FORMAT = true |
static const bool | UNCOMP_FORMAT = false |
static const int | NUM_CONVERT_IMAGE_FORMATS = 5 |
static const ConvertAttributes | sConvertMappings [] |
static const float | G_GRR [5][5] |
static const float | G_BGB [5][5] |
static const float | R_GRG [5][5] |
static const float | R_BGG [5][5] |
static const float | R_BGB [5][5] |
static Table< std::string, std::string > | lastFound |
static Array< std::string > | directoryArray |
static BufferPool * | bufferpool = NULL |
This is the main Class to manage loading and unloading of maps, line of sight, height calculation and so on. For each map or map tile to load it reads a directory file that contains the ModelContainer files used by this map or map tile. Each global map or instance has its own dynamic BSP-Tree. The loaded ModelContainers are included in one of these BSP-Trees. Additionally a table to match map ids and map names is used.
typedef Rect2D G3D::AABox2D |
typedef bool(* G3D::AssertionHook)(const char *_expression, const std::string &message, const char *filename, int lineNumber, bool useGuiPrompt) |
typedef Color3 G3D::Biradiance3 |
Radiance * measure(Solid Angle) between two points, measured at the receiver orthogonal to the axis between them; W/m^2
typedef CoordinateFrame G3D::CFrame |
typedef void(* G3D::ConsolePrintHook)(const std::string &) |
typedef void(* G3D::ConvertFunc)(const Array< const void * > &srcBytes, int srcWidth, int srcHeight, const ImageFormat *srcFormat, int srcRowPadBits, const Array< void * > &dstBytes, const ImageFormat *dstFormat, int dstRowPadBits, bool invertY, ImageFormat::BayerAlgorithm bayerAlg) |
typedef Color3 G3D::Energy3 |
Force * distance; J
typedef float G3D::float32 |
typedef double G3D::float64 |
typedef double G3D::GameTime |
typedef shared_ptr<class GThread> G3D::GThreadRef |
typedef shared_ptr<class Image1> G3D::Image1Ref |
typedef shared_ptr<class Image3> G3D::Image3Ref |
typedef shared_ptr<class Image4> G3D::Image4Ref |
typedef int16_t G3D::int16 |
typedef int32_t G3D::int32 |
typedef int64_t G3D::int64 |
typedef Color3 G3D::Irradiance3 |
Incident power per area; W/m^2
typedef shared_ptr<class LightweightConduit> G3D::LightweightConduitRef |
typedef unsigned char G3D::md5_byte_t |
typedef struct G3D::md5_state_s G3D::md5_state_t |
typedef unsigned int G3D::md5_word_t |
typedef shared_ptr<class NetListener> G3D::NetListenerRef |
typedef PhysicsFrame G3D::PFrame |
typedef Vector2 G3D::Point2 |
typedef Vector2int16 G3D::Point2int16 |
typedef Vector2int32 G3D::Point2int32 |
typedef Vector2unorm16 G3D::Point2unorm16 |
typedef Vector3 G3D::Point3 |
Points are technically distinct mathematical entities from vectors. Actually distinguishing them at the class level tends to add lots of boilerplate (e.g., (P - Point3::zero()).direction() vs. P.direction()), so many programmers prefer use a single class, as GLSL does.
G3D provides this typedef as a way of documenting arguments that are locations in space and not directions. Beware that points and vectors are interchangable from the compiler's point of view, and that the programmer must track which is really which.
typedef Vector3int16 G3D::Point3int16 |
typedef Vector3int32 G3D::Point3int32 |
typedef Color3 G3D::Power3 |
Energy per time; W
typedef Color3 G3D::Radiance3 |
Power per (measure(SolidAngle) * measure(Area)); W / (m^2 sr)
typedef Color3 G3D::Radiosity3 |
Power per area; J / m^2
typedef double G3D::RealTime |
Actual wall clock time in seconds (Unix time).
typedef shared_ptr<class ReliableConduit> G3D::ReliableConduitRef |
typedef double G3D::SimTime |
Time, in seconds.
typedef Stopwatch G3D::StopWatch |
Because it is hard to remember the proper capitalization.
typedef ImageFormat G3D::TextureFormat |
typedef uint16_t G3D::uint16 |
typedef uint32_t G3D::uint32 |
typedef uint64_t G3D::uint64 |
typedef uint8_t G3D::uint8 |
anonymous enum |
Enumerator | |
---|---|
SECOND | |
MINUTE | |
HOUR | |
DAY | |
SUNRISE | |
SUNSET | |
MIDNIGHT | |
METER | |
KILOMETER |
enum G3D::AMPM |
enum G3D::BinaryFormat |
Some values like float16 and int128 have no current CPU data structure that implements them but are useful for file formats and for GPUs.
CHUNK_BINFMT data follows the protocol.
enum G3D::G3DEndian |
The order in which the bytes of an integer are stored on a machine.
Intel/AMD chips tend to be G3D_LITTLE_ENDIAN, Mac PPC's and Suns are G3D_BIG_ENDIAN. However, this is primarily used to specify the byte order of file formats, which are fixed.
Enumerator | |
---|---|
G3D_BIG_ENDIAN | |
G3D_LITTLE_ENDIAN |
enum G3D::SpawnBehavior |
void G3D::_internal_runConcurrently2DHelper | ( | const Vector2int32 & | start, |
const Vector2int32 & | upTo, | ||
Class * | object, | ||
void(Class::*)(int x, int y) | method1, | ||
void(Class::*)(int x, int y, int threadID) | method2, | ||
int | maxThreads | ||
) |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
|
static |
Applies a 5x5 filter to monochrome image I (wrapping at the boundaries)
|
inline |
AssertionHook G3D::assertionHook | ( | ) |
|
static |
Assigns the edge index into the next unassigned edge index. The edge index may be negative, indicating a reverse edge.
|
inline |
True if the next token begins the close tag
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Returns true if the test string begins with the pattern string.
|
static |
|
static |
|
static |
uint8 G3D::bits | ( | ) | const |
int32 G3D::byteSize | ( | BinaryFormat | f | ) |
Returns -1 if the format is custom, otherwise the byte size of a single element in this format.
|
static |
|
inline |
|
static |
Called from init
|
static |
Checks if the CPUID command is available on the processor (called from init)
Vector2int32 G3D::clamp | ( | const Vector2int32 & | lo, |
const Vector2int32 & | hi | ||
) |
Vector2int16 G3D::clamp | ( | const Vector2int16 & | lo, |
const Vector2int16 & | hi | ||
) |
|
inline |
|
inline |
|
static |
Removes the 'd' that icompile / Morgan's VC convention appends.
std::string G3D::consolePrint | ( | const std::string & | s | ) |
std::string __cdecl G3D::consolePrintf | ( | const char * | fmt... | ) |
Sends output to the log and to the last GConsole instantiated.
Guarantees that the output has been flushed by the time the routine returns.
ConsolePrintHook G3D::consolePrintHook | ( | ) |
bool G3D::conversionAvailable | ( | const ImageFormat * | srcFormat, |
int | srcRowPadBits, | ||
const ImageFormat * | dstFormat, | ||
int | dstRowPadBits, | ||
bool | invertY = false |
||
) |
|
inline |
void G3D::createDirectory | ( | const std::string & | dir | ) |
Creates the directory (which may optionally end in a /) and any parents needed to reach it.
FILE* G3D::createTempFile | ( | ) |
Returns a temporary file that is open for read/write access. This tries harder than the ANSI tmpfile, so it may succeed when that fails.
YType G3D::cyclicCatmullRomSpline | ( | double | t, |
const YType * | controlY, | ||
int | numPoints | ||
) |
See also G3D::Spline
YType G3D::cyclicCatmullRomSpline | ( | double | t, |
const Array< YType > & | controlY | ||
) |
A cubic spline with regularly spaced control points. The spline interpolates the control points. The spline will wrap from the last point back to the first.
The t parameter is on the range [0, controlY.size()], where integers correspond to control points exactly.
See also G3D::Spline
[http://www.mvps.org/directx/articles/catmull/]
std::string __cdecl G3D::debugPrint | ( | const std::string & | s | ) |
std::string __cdecl G3D::debugPrintf | ( | const char * | fmt... | ) |
Under visual studio, appears in the VS debug pane. On unix-based operating systems the output is sent to stderr.
Also sends output to the console (G3D::consolePrintf) if there is a consolePrintHook, and log (G3D::logPrintf), and flushes before returning.
G3D::DECLARE_CONVERT_FUNC | ( | l8_to_rgb8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | l32f_to_rgb8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgb8_to_rgba8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgb8_to_bgr8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgb8_to_rgba32f | ) |
G3D::DECLARE_CONVERT_FUNC | ( | bgr8_to_rgb8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | bgr8_to_rgba8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | bgr8_to_rgba32f | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba8_to_rgb8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba8_to_bgr8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba8_to_rgba32f | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgb32f_to_rgba32f | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba32f_to_rgb8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba32f_to_rgba8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba32f_to_bgr8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba32f_to_rgb32f | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba32f_to_bayer_rggb8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba32f_to_bayer_gbrg8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba32f_to_bayer_grbg8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgba32f_to_bayer_bggr8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | bayer_rggb8_to_rgba32f | ) |
G3D::DECLARE_CONVERT_FUNC | ( | bayer_gbrg8_to_rgba32f | ) |
G3D::DECLARE_CONVERT_FUNC | ( | bayer_grbg8_to_rgba32f | ) |
G3D::DECLARE_CONVERT_FUNC | ( | bayer_bggr8_to_rgba32f | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgb8_to_yuv420p | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgb8_to_yuv422 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | rgb8_to_yuv444 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | yuv420p_to_rgb8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | yuv422_to_rgb8 | ) |
G3D::DECLARE_CONVERT_FUNC | ( | yuv444_to_rgb8 | ) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | L8 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_LUMINANCE8 | , | ||
GL_LUMINANCE | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
CODE_L8 | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | L16 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_LUMINANCE16 | , | ||
GL_LUMINANCE | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_SHORT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
CODE_L16 | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | L16F | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_LUMINANCE16F_ARB | , | ||
GL_LUMINANCE | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_HALF_FLOAT | , | ||
OPAQUE_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
CODE_L16F | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | L32F | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_LUMINANCE32F_ARB | , | ||
GL_LUMINANCE | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_FLOAT | , | ||
OPAQUE_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
CODE_L32F | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | A8 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_ALPHA8 | , | ||
GL_ALPHA | , | ||
0 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
CODE_A8 | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | A16 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_ALPHA16 | , | ||
GL_ALPHA | , | ||
0 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_SHORT | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
CODE_A16 | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | A16F | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_ALPHA16F_ARB | , | ||
GL_ALPHA | , | ||
0 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_HALF_FLOAT | , | ||
CLEAR_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
CODE_A16F | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | A32F | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_ALPHA32F_ARB | , | ||
GL_ALPHA | , | ||
0 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_FLOAT | , | ||
CLEAR_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
CODE_A32F | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | LA4 | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_LUMINANCE4_ALPHA4 | , | ||
GL_LUMINANCE_ALPHA | , | ||
4 | , | ||
4 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
CODE_LA4 | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | LA8 | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_LUMINANCE8_ALPHA8 | , | ||
GL_LUMINANCE_ALPHA | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
CODE_LA8 | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | LA16 | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_LUMINANCE16_ALPHA16 | , | ||
GL_LUMINANCE_ALPHA | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 * | 2, | ||
16 * | 2, | ||
GL_UNSIGNED_SHORT | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
CODE_LA16 | , | ||
COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | LA16F | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_LUMINANCE_ALPHA16F_ARB | , | ||
GL_LUMINANCE_ALPHA | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 * | 2, | ||
16 * | 2, | ||
GL_HALF_FLOAT | , | ||
CLEAR_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_LA16F | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | LA32F | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_LUMINANCE_ALPHA32F_ARB | , | ||
GL_LUMINANCE_ALPHA | , | ||
32 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 * | 2, | ||
32 * | 2, | ||
GL_FLOAT | , | ||
CLEAR_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_LA32F | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | BGR8 | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB8 | , | ||
GL_BGR | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
24 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_BGR8 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | BGRA8 | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA8 | , | ||
GL_BGRA | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_BGRA8 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R8 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_R8 | , | ||
GL_RED | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_R8 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R8I | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_R8I | , | ||
GL_RED_INTEGER | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
GL_BYTE | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_R8I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R8UI | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_R8UI | , | ||
GL_RED_INTEGER | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_R8UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R16 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_R16 | , | ||
GL_RED | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_SHORT | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_R16 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R16I | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_R16I | , | ||
GL_RED_INTEGER | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_SHORT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_R16I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R16UI | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_R16UI | , | ||
GL_RED_INTEGER | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_SHORT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_R16UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R32I | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_R32I | , | ||
GL_RED_INTEGER | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_INT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_R32I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R32UI | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_R32UI | , | ||
GL_RED_INTEGER | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_UNSIGNED_INT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_R32UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RG8 | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_RG8 | , | ||
GL_RG | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RG8 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RG8I | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_RG8I | , | ||
GL_RG_INTEGER | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RG8I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RG8UI | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_RG8UI | , | ||
GL_RG_INTEGER | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RG8UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RG16 | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_RG16 | , | ||
GL_RG | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 * | 2, | ||
16 * | 2, | ||
GL_UNSIGNED_SHORT | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RG16 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RG16I | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_RG16I | , | ||
GL_RG_INTEGER | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 * | 2, | ||
16 * | 2, | ||
GL_SHORT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RG16I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RG16UI | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_RG16UI | , | ||
GL_RG_INTEGER | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 * | 2, | ||
16 * | 2, | ||
GL_UNSIGNED_SHORT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RG16UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R16F | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_R16F | , | ||
GL_RED | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_HALF_FLOAT | , | ||
OPAQUE_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_R16F | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RG16F | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_RG16F | , | ||
GL_RG | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_HALF_FLOAT | , | ||
OPAQUE_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_RG16F | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RG32I | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_RG32I | , | ||
GL_RG_INTEGER | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 * | 2, | ||
32 * | 2, | ||
GL_INT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RG32I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RG32UI | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_RG32UI | , | ||
GL_RG_INTEGER | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 * | 2, | ||
32 * | 2, | ||
GL_UNSIGNED_INT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RG32UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R32F | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_R32F | , | ||
GL_RED | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_FLOAT | , | ||
OPAQUE_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_R32F | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RG32F | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_RG32F | , | ||
GL_RG | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
64 | , | ||
64 | , | ||
GL_FLOAT | , | ||
OPAQUE_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_RG32F | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB5 | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB5 | , | ||
GL_RGBA | , | ||
0 | , | ||
0 | , | ||
5 | , | ||
5 | , | ||
5 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB5 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB5A1 | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB5_A1 | , | ||
GL_RGBA | , | ||
0 | , | ||
1 | , | ||
5 | , | ||
5 | , | ||
5 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB5A1 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB8 | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB8 | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
24 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB8 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB10 | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB10 | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
10 | , | ||
10 | , | ||
10 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
10 * | 3, | ||
GL_UNSIGNED_SHORT | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB10 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB10A2 | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB10_A2 | , | ||
GL_RGBA | , | ||
0 | , | ||
2 | , | ||
10 | , | ||
10 | , | ||
10 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_UNSIGNED_INT_10_10_10_2 | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB10A2 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB16 | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB16 | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
16 * | 3, | ||
16 * | 3, | ||
GL_UNSIGNED_SHORT | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB16 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB16F | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB16F_ARB | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
16 * | 3, | ||
16 * | 3, | ||
GL_HALF_FLOAT | , | ||
OPAQUE_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB16F | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB32F | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB32F_ARB | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
32 * | 3, | ||
32 * | 3, | ||
GL_FLOAT | , | ||
OPAQUE_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB32F | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA8 | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA8 | , | ||
GL_RGBA | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGBA8 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA16 | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA16 | , | ||
GL_RGBA | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
16 * | 4, | ||
16 * | 4, | ||
GL_UNSIGNED_SHORT | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGBA16 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA16F | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA16F_ARB | , | ||
GL_RGBA | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
16 * | 4, | ||
16 * | 4, | ||
GL_HALF_FLOAT | , | ||
CLEAR_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_RGBA16F | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA32F | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA32F_ARB | , | ||
GL_RGBA | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
32 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
32 * | 4, | ||
32 * | 4, | ||
GL_FLOAT | , | ||
CLEAR_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_RGBA32F | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA16I | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA16I | , | ||
GL_RGBA_INTEGER | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
16 * | 4, | ||
16 * | 4, | ||
GL_SHORT | , | ||
CLEAR_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RGBA16I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA16UI | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA16UI | , | ||
GL_RGBA_INTEGER | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
16 * | 4, | ||
16 * | 4, | ||
GL_UNSIGNED_SHORT | , | ||
CLEAR_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RGBA16UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB32I | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB32I | , | ||
GL_RGBA_INTEGER | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 * | 3, | ||
32 * | 3, | ||
GL_INT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RGB32I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB32UI | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB32UI | , | ||
GL_RGBA_INTEGER | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 * | 3, | ||
32 * | 3, | ||
GL_UNSIGNED_INT | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RGB32UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA32I | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA32I | , | ||
GL_RGBA_INTEGER | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
32 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
32 * | 4, | ||
32 * | 4, | ||
GL_INT | , | ||
CLEAR_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RGBA32I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA32UI | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA32UI | , | ||
GL_RGBA_INTEGER | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
32 | , | ||
32 | , | ||
0 | , | ||
0 | , | ||
32 * | 4, | ||
32 * | 4, | ||
GL_UNSIGNED_INT | , | ||
CLEAR_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RGBA32UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | R11G11B10F | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_R11F_G11F_B10F_EXT | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
11 | , | ||
11 | , | ||
10 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_FLOAT | , | ||
OPAQUE_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_R11G11B10F | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB9E5F | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB9_E5_EXT | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
14 | , | ||
14 | , | ||
14 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_FLOAT | , | ||
OPAQUE_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB9E5F | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB8I | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB8I_EXT | , | ||
GL_RGB_INTEGER | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
24 | , | ||
GL_BYTE | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RGB8I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB8UI | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB8UI_EXT | , | ||
GL_RGB_INTEGER | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
24 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RGB8UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA8I | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA8I_EXT | , | ||
GL_RGBA_INTEGER | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_BYTE | , | ||
CLEAR_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RGBA8I | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA8UI | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA8UI_EXT | , | ||
GL_RGBA_INTEGER | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
INTEGER_FORMAT | , | ||
ImageFormat::CODE_RGBA8UI | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB8_SNORM | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB8_SNORM | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB8_SNORM | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA8_SNORM | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA8_SNORM | , | ||
GL_RGBA | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGBA8_SNORM | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB16_SNORM | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGB16_SNORM | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
64 | , | ||
64 | , | ||
GL_SHORT | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGB16_SNORM | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA16_SNORM | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_RGBA16_SNORM | , | ||
GL_RGB | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
0 | , | ||
0 | , | ||
64 | , | ||
64 | , | ||
GL_SHORT | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_RGBA16_SNORM | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGB_DXT1 | , |
3 | , | ||
COMP_FORMAT | , | ||
GL_COMPRESSED_RGB_S3TC_DXT1_EXT | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
64 | , | ||
64 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
OTHER | , | ||
ImageFormat::CODE_RGB_DXT1 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA_DXT1 | , |
4 | , | ||
COMP_FORMAT | , | ||
GL_COMPRESSED_RGBA_S3TC_DXT1_EXT | , | ||
GL_RGBA | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
64 | , | ||
64 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
OTHER | , | ||
ImageFormat::CODE_RGBA_DXT1 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA_DXT3 | , |
4 | , | ||
COMP_FORMAT | , | ||
GL_COMPRESSED_RGBA_S3TC_DXT3_EXT | , | ||
GL_RGBA | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
128 | , | ||
128 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
OTHER | , | ||
ImageFormat::CODE_RGBA_DXT3 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | RGBA_DXT5 | , |
4 | , | ||
COMP_FORMAT | , | ||
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT | , | ||
GL_RGBA | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
128 | , | ||
128 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
OTHER | , | ||
ImageFormat::CODE_RGBA_DXT5 | , | ||
ImageFormat::COLOR_SPACE_RGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | SRGB8 | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_SRGB8 | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
24 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_SRGB8 | , | ||
ImageFormat::COLOR_SPACE_SRGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | SRGBA8 | , |
4 | , | ||
UNCOMP_FORMAT | , | ||
GL_SRGB8_ALPHA8 | , | ||
GL_RGBA | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
24 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_SRGBA8 | , | ||
ImageFormat::COLOR_SPACE_SRGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | SL8 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_SLUMINANCE8 | , | ||
GL_LUMINANCE | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_SL8 | , | ||
ImageFormat::COLOR_SPACE_SRGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | SLA8 | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_SLUMINANCE8_ALPHA8 | , | ||
GL_LUMINANCE_ALPHA | , | ||
8 | , | ||
8 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_SLA8 | , | ||
ImageFormat::COLOR_SPACE_SRGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | SRGB_DXT1 | , |
3 | , | ||
COMP_FORMAT | , | ||
GL_COMPRESSED_SRGB_S3TC_DXT1_EXT | , | ||
GL_RGB | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
64 | , | ||
64 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
OTHER | , | ||
ImageFormat::CODE_SRGB_DXT1 | , | ||
ImageFormat::COLOR_SPACE_SRGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | SRGBA_DXT1 | , |
4 | , | ||
COMP_FORMAT | , | ||
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT | , | ||
GL_RGBA | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
64 | , | ||
64 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
OTHER | , | ||
ImageFormat::CODE_SRGBA_DXT1 | , | ||
ImageFormat::COLOR_SPACE_SRGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | SRGBA_DXT3 | , |
4 | , | ||
COMP_FORMAT | , | ||
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT | , | ||
GL_RGBA | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
128 | , | ||
128 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
OTHER | , | ||
ImageFormat::CODE_SRGBA_DXT3 | , | ||
ImageFormat::COLOR_SPACE_SRGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | SRGBA_DXT5 | , |
4 | , | ||
COMP_FORMAT | , | ||
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT | , | ||
GL_RGBA | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
128 | , | ||
128 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
OTHER | , | ||
ImageFormat::CODE_SRGBA_DXT5 | , | ||
ImageFormat::COLOR_SPACE_SRGB | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | DEPTH16 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_DEPTH_COMPONENT16_ARB | , | ||
GL_DEPTH_COMPONENT | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_SHORT | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_DEPTH16 | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | DEPTH24 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_DEPTH_COMPONENT24_ARB | , | ||
GL_DEPTH_COMPONENT | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
24 | , | ||
0 | , | ||
32 | , | ||
24 | , | ||
GL_UNSIGNED_INT | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_DEPTH24 | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | DEPTH32 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_DEPTH_COMPONENT32_ARB | , | ||
GL_DEPTH_COMPONENT | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_UNSIGNED_INT | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_DEPTH32 | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | DEPTH32F | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_DEPTH_COMPONENT32_ARB | , | ||
GL_DEPTH_COMPONENT | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
32 | , | ||
0 | , | ||
32 | , | ||
32 | , | ||
GL_FLOAT | , | ||
CLEAR_FORMAT | , | ||
FLOATING_POINT_FORMAT | , | ||
ImageFormat::CODE_DEPTH32F | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | STENCIL1 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_STENCIL_INDEX1_EXT | , | ||
GL_STENCIL_INDEX | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
1 | , | ||
1 | , | ||
1 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_STENCIL1 | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | STENCIL4 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_STENCIL_INDEX4_EXT | , | ||
GL_STENCIL_INDEX | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
4 | , | ||
4 | , | ||
4 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_STENCIL4 | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | STENCIL8 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_STENCIL_INDEX8_EXT | , | ||
GL_STENCIL_INDEX | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
8 | , | ||
8 | , | ||
8 | , | ||
GL_UNSIGNED_BYTE | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_STENCIL8 | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | STENCIL16 | , |
1 | , | ||
UNCOMP_FORMAT | , | ||
GL_STENCIL_INDEX16_EXT | , | ||
GL_STENCIL_INDEX | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_SHORT | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_STENCIL16 | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | DEPTH24_STENCIL8 | , |
2 | , | ||
UNCOMP_FORMAT | , | ||
GL_DEPTH24_STENCIL8_EXT | , | ||
GL_DEPTH_STENCIL_EXT | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
24 | , | ||
8 | , | ||
32 | , | ||
32 | , | ||
GL_UNSIGNED_INT_24_8 | , | ||
CLEAR_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_DEPTH24_STENCIL8 | , | ||
ImageFormat::COLOR_SPACE_NONE | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | YUV420_PLANAR | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_NONE | , | ||
GL_NONE | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
12 | , | ||
12 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_YUV420_PLANAR | , | ||
ImageFormat::COLOR_SPACE_YUV | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | YUV422 | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_NONE | , | ||
GL_NONE | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
16 | , | ||
16 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_YUV422 | , | ||
ImageFormat::COLOR_SPACE_YUV | |||
) |
G3D::DEFINE_TEXTUREFORMAT_METHOD | ( | YUV444 | , |
3 | , | ||
UNCOMP_FORMAT | , | ||
GL_NONE | , | ||
GL_NONE | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
24 | , | ||
24 | , | ||
GL_UNSIGNED_BYTE | , | ||
OPAQUE_FORMAT | , | ||
NORMALIZED_FIXED_POINT_FORMAT | , | ||
ImageFormat::CODE_YUV444 | , | ||
ImageFormat::COLOR_SPACE_YUV | |||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void G3D::deserialize | ( | Array< T > & | array, |
BinaryInput & | b | ||
) |
void G3D::deserialize | ( | class BinaryInput & | bi | ) |
void G3D::deserialize | ( | Vector2 & | v, |
class BinaryInput & | b | ||
) |
void G3D::deserialize | ( | Vector3::Axis & | a, |
class BinaryInput & | bo | ||
) |
void G3D::deserialize | ( | Vector4 & | v, |
class BinaryInput & | b | ||
) |
void G3D::deserialize | ( | Vector3 & | v, |
class BinaryInput & | b | ||
) |
void G3D::deserialize | ( | bool & | b, |
TextInput & | ti | ||
) |
void G3D::deserialize | ( | int & | b, |
TextInput & | ti | ||
) |
void G3D::deserialize | ( | uint8 & | b, |
TextInput & | ti | ||
) |
void G3D::deserialize | ( | double & | b, |
TextInput & | ti | ||
) |
void G3D::deserialize | ( | float & | b, |
TextInput & | ti | ||
) |
void G3D::deserialize | ( | std::string & | b, |
TextInput & | ti | ||
) |
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
int G3D::dot | ( | const Vector3int16 & | v | ) | const |
|
inline |
Returns true if the test string ends with the pattern string.
void G3D::enumToJavaScriptDeclaration | ( | TextOutput & | t | ) |
Generates JavaScript source code defining an enum equivalent to EnumClass.
|
inline |
Computes an appropriate epsilon for comparing a and b.
|
inline |
const char* G3D::errnoToString | ( | ) |
|
static |
|
inline |
|
inline |
AssertionHook G3D::failureHook | ( | ) |
std::string G3D::filenameBase | ( | const std::string & | filename | ) |
Returns the portion of a filename to the left of the last period and to the right of the last slash or colon.
std::string G3D::filenameBaseExt | ( | const std::string & | filename | ) |
Returns the part of the filename that includes the base and ext from parseFilename (i.e. everything to the right of the path).
std::string G3D::filenameExt | ( | const std::string & | filename | ) |
std::string G3D::filenamePath | ( | const std::string & | filename | ) |
Returns the drive (if Win32) and path from a filename, including a slash if there was one. filenamePath(f) + filenameBaseExt(f) == f
|
static |
|
inline |
Finds the index of the first '\' or '/' character, starting at index start (if start is -1, starts at the end of the string).
|
static |
Used by collisionTimeForMovingPointFixedCapsule. [From] magic software http://www.magic-software.com/Source/Intersection3D/MgcIntr3DLinCap.cpp
rkRay | The ray |
rkCapsule | The capsule |
riQuantity | The number of intersections found |
akPoint | The intersections found |
|
static |
Used by findRayCapsuleIntersection. [From] magic software http://www.magic-software.com/Source/Intersection3D/MgcIntr3DLinCap.cpp
|
inline |
Finds the index of the first '\' or '/' character, starting at index start.
Determines the type [TABLE, ARRAY, or EMPTY_CONTAINER] from the given TextInput TextInput is the same at the end as it was beofr
float G3D::finf | ( | ) |
This value should not be tested against directly, instead G3D::isNan() and G3D::isFinite() will return reliable results.
|
static |
|
static |
float G3D::fnan | ( | ) |
std::string __cdecl G3D::format | ( | const char * | fmt, |
... | |||
) |
std::string __cdecl G3D::format | ( | const char * | fmt... | ) |
Produces a string from arguments of the style of printf. This avoids problems with buffer overflows when using sprintf and makes it easy to use the result functionally. This function is fast when the resulting string is under 160 characters (not including terminator) and slower when the string is longer.
double G3D::frand | ( | ) |
Equivalent to:
Equivalent to:
|
inline |
Note that fuzzyEq(a, b) && fuzzyEq(b, c) does not imply fuzzyEq(a, c), although that will be the case on some occasions.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
True if a is definitely not equal to b. Guaranteed false if a == b. Possibly false when a != b.
Function fnmatch() as specified in POSIX 1003.2-1992, section B.6. Compares a filename or pathname to a pattern.
The fnmatch() function checks whether the string argument matches the pattern argument, which is a shell wildcard pattern. The flags argument modifies the behaviour; it is the bitwise OR of zero or more of the following flags:
void G3D::gaussian1D | ( | Array< float > & | coeff, |
int | N = 5 , |
||
float | std = 0.5f |
||
) |
Generates a set of 1D gaussian filter coefficients of size N. The coefficients are centered on element (N-1)/2 and have standard deviation given by std. The coefficients are normalized such that the sum across coeff is 1.0.
Matches the results returned by Matlab fspecial('gaussian', [1, N], std)
float G3D::gaussRandom | ( | float | mean = 0.0f , |
float | stdev = 1.0f |
||
) |
Normally distributed random number.
std::string G3D::generateFilenameBase | ( | const std::string & | prefix = "" , |
const std::string & | suffix = "" |
||
) |
Creates a unique filename base in the current directory using the specified prefix and suffix.
|
static |
|
static |
Helper for getFileList and getDirectoryList.
wantFiles | If false, returns the directories, otherwise returns the files. |
includePath | If true, the names include paths |
|
static |
|
static |
Called from init
|
inline |
size_t G3D::hashCode | ( | ) | const |
int G3D::highestBit | ( | uint32 | x | ) |
Returnes the 0-based index of the highest 1 bit from the left. -1 means the number was 0.
[Based] on code by jukka @lii matta .org
|
inline |
|
inline |
Clamps the value to the range [low, hi] (inclusive)
Vector3int32 G3D::iFloor | ( | const Vector3 & | v | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Increases the send and receive sizes of a socket to 2 MB from 8k
double G3D::inf | ( | ) |
This value should not be tested against directly, instead G3D::isNan() and G3D::isFinite() will return reliable results.
void G3D::initG3D | ( | const G3DSpecification & | spec = G3DSpecification() | ) |
Call from main() to initialize the G3D library state and register shutdown memory managers. This does not initialize OpenGL.
If you invoke initGLG3D, then it will automatically call initG3D. It is safe to call this function more than once–it simply ignores multiple calls.
|
inline |
int G3D::iRandom | ( | int | low, |
int | hi | ||
) |
Returns a random number uniformly at random between low and hi (inclusive).
|
inline |
|
inline |
|
inline |
|
inline |
Returns true if the argument is a finite real number.
|
inline |
|
inline |
|
inline |
|
inline |
bool G3D::isNaN | ( | double | x | ) |
Returns true if the argument is NaN (not a number). You can't use x == nan to test this because all comparisons against nan return false.
bool G3D::isNaN | ( | float | x | ) |
|
inline |
|
static |
bool G3D::isNull | ( | const ReferenceCountedPointer< T > & | ptr | ) |
|
inline |
|
inline |
|
static |
Useful for debugging purposes.
Returns true if s is a valid C++ identifier
Returns true if the pointer is likely to be a valid pointer (instead of an arbitrary number). Useful for debugging purposes.
|
static |
bool G3D::isZero | ( | ) | const |
|
inline |
Wraps the value to the range [0, hi) (exclusive on the high end). This is like the clock arithmetic produced by % (modulo) except the result is guaranteed to be positive.
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string G3D::license | ( | ) |
G3D, SDL, and IJG libraries require license documentation to be distributed with your program. This generates the string that must appear in your documentation. Your program can be commercial, closed-source under any license you want.
YType G3D::linearSpline | ( | double | x, |
const XType * | controlX, | ||
const YType * | controlY, | ||
int | numControl | ||
) |
Interpolates a property according to a piecewise linear spline. This provides C0 continuity but the derivatives are not smooth.
Example: const double times[] = {MIDNIGHT, SUNRISE - HOUR, SUNRISE, SUNRISE + sunRiseAndSetTime / 4, SUNRISE + sunRiseAndSetTime, SUNSET - sunRiseAndSetTime, SUNSET - sunRiseAndSetTime / 2, SUNSET, SUNSET + HOUR/2, DAY}; const Color3 color[] = {Color3(0, .0, .1), Color3(0, .0, .1), Color3::black(), Color3::black(), Color3::white() * .25, Color3::white() * .25, Color3(.5, .2, .2), Color3(.05, .05, .1), Color3(0, .0, .1), Color3(0, .0, .1)}; ambient = linearSpline(time, times, color, 10);
See also G3D::Spline
x | The spline is a function of x; this is the sample to choose. |
controlX | controlX[i], controlY[i] is a control points. It is assumed that controlX are strictly increasing. XType must support the "<" operator and a subtraction operator that returns a number. |
controlY | YType must support multiplication and addition. |
numControl | The number of control points. |
|
inline |
|
inline |
|
inline |
void G3D::logLazyPrintf | ( | const char * | fmt, |
... | |||
) |
Does not flush the buffer; follow up with a logPrintf to force the flush.
void G3D::logPrintf | ( | const char * | fmt, |
... | |||
) |
Prints to the common system log, log.txt, which is usually in the working directory of the program. If your disk is not writable or is slow, it will attempt to write to "c:/tmp/log.txt" or "c:/temp/log.txt" on Windows systems instead.
Unlike printf or debugPrintf, this function guarantees that all output is committed before it returns. This is very useful for debugging a crash, which might hide the last few buffered print statements otherwise.
Many G3D routines write useful warnings and debugging information to the system log, which makes it a good first place to go when tracking down a problem.
Vector2int32 G3D::max | ( | const Vector2int32 & | v | ) | const |
Vector3int16 G3D::max | ( | const Vector3int16 & | v | ) | const |
Vector2int16 G3D::max | ( | const Vector2int16 & | v | ) | const |
Vector3int32 G3D::max | ( | const Vector3int32 & | v | ) | const |
|
inline |
Returns the larger string index, ignoring std::string::npos.
|
static |
|
static |
|
static |
|
static |
Vector2int32 G3D::min | ( | const Vector2int32 & | v | ) | const |
Vector3int16 G3D::min | ( | const Vector3int16 & | v | ) | const |
Vector2int16 G3D::min | ( | const Vector2int16 & | v | ) | const |
Vector3int32 G3D::min | ( | const Vector3int32 & | v | ) | const |
Displays a GUI prompt with "Ok" as the only choice.
|
inline |
void G3D::multiplyAndCarry | ( | const uint64 & | _a, |
const uint64 & | _b, | ||
uint64 & | carry, | ||
uint64 & | result | ||
) |
Multiplies two unsigned 64-bit integers, placing the result into one 64-bit int and the overflow into another.
double G3D::nan | ( | ) |
This value should not be tested against directly, instead G3D::isNan() and G3D::isFinite() will return reliable results.
bool G3D::nonZero | ( | ) | const |
bool G3D::notNull | ( | const ReferenceCountedPointer< T > & | ptr | ) |
|
static |
|
static |
G3D::operator float | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
Vector3int32 G3D::operator& | ( | int16 | i | ) | const |
Vector3int16 G3D::operator& | ( | const Vector3int16 & | v | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Vector3int32& G3D::operator*= | ( | const Vector3int32 & | other | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Vector3int32& G3D::operator+= | ( | const Vector3int32 & | other | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Vector3int32& G3D::operator-= | ( | const Vector3int32 & | other | ) |
|
inline |
Integer division
|
inline |
Integer division
|
inline |
std::ostream & G3D::operator<< | ( | std::ostream & | os, |
const NetAddress & | a | ||
) |
Vector3int16 G3D::operator<< | ( | const Vector3int16 & | v | ) | const |
Vector3int32 G3D::operator<< | ( | const Vector3int32 & | v | ) | const |
|
inline |
Shifts both x and y
std::ostream & G3D::operator<< | ( | std::ostream & | os, |
const Vector3 & | v | ||
) |
bool G3D::operator<= | ( | const Vector2int32 & | ) | const |
bool G3D::operator<= | ( | const Vector2int16 & | ) | const |
bool G3D::operator<= | ( | const Vector2unorm16 & | ) | const |
bool G3D::operator<= | ( | const Vector3int16 & | ) | const |
Vector2unorm16 & G3D::operator= | ( | const Any & | a | ) |
|
inline |
|
inline |
|
inline |
|
inline |
bool G3D::operator> | ( | const Vector2int32 & | ) | const |
bool G3D::operator> | ( | const Vector2int16 & | ) | const |
bool G3D::operator> | ( | const Vector2unorm16 & | ) | const |
bool G3D::operator> | ( | const Vector3int16 & | ) | const |
bool G3D::operator>= | ( | const Vector2int32 & | ) | const |
bool G3D::operator>= | ( | const Vector2int16 & | ) | const |
bool G3D::operator>= | ( | const Vector2unorm16 & | ) | const |
bool G3D::operator>= | ( | const Vector3int16 & | ) | const |
Vector3int16 G3D::operator>> | ( | const Vector3int16 & | v | ) | const |
Vector3int32 G3D::operator>> | ( | const Vector3int32 & | v | ) | const |
|
inline |
Shifts both x and y
|
inline |
void G3D::parseCommaSeparated | ( | const std::string | s, |
Array< std::string > & | array, | ||
bool | stripQuotes = true |
||
) |
Separates a comma-separated line, properly escaping commas within double quotes (") and super quotes ("""). This matches Microsoft Excel's CSV output.
stripQuotes | If true, strips leading and trailing " and """ |
void G3D::parseFilename | ( | const std::string & | filename, |
std::string & | drive, | ||
Array< std::string > & | path, | ||
std::string & | base, | ||
std::string & | ext | ||
) |
Parses a filename into four useful pieces.
Examples:
c:\a\b\d.e root = "c:\\" path = "a" "b" base = "d" ext = "e"
/a/b/d.e root = "/" path = "a" "b" base = "d" ext = "e"
/a/b root = "/" path = "a" base = "b" ext = "e"
Appends file onto dirname, ensuring a / if needed.
|
inline |
|
inline |
|
static |
|
inline |
|
inline |
int G3D::prompt | ( | const char * | windowTitle, |
const char * | promptx, | ||
const char ** | choice, | ||
int | numChoices, | ||
bool | useGui | ||
) |
Prints a prompt to stdout and waits for user input. The return value is the number of the user's choice (the first is 0, if there are no choices, returns 0).
useGui | Under Win32, use a GUI, not stdout prompt. |
windowTitle | The title for the prompt window |
promptx | The text string to prompt the user with |
choice | An array of strings that are the choices the user may make |
numChoices | The length of choice. |
[Windows] dialog interface by Max McGuire, mmcgu [Font] setting code by Kurt Miller, ire@ ironl ore. comkurt@ flip code. com
|
inline |
Prints a prompt and waits for user input. The return value is the number of the user's choice (the first is 0, if there are no choices, returns 0).
Uses GUI under Win32, stdout prompt otherwise.
|
static |
Helper for svdCore
Helper used by the constructors for decompression
Returns true if the socket has a read pending
std::string G3D::readWholeFile | ( | const std::string & | filename | ) |
Returns the contents of a text file as a single string
uint16 G3D::reinterpretAsUInt16 | ( | ) | const |
uint8 G3D::reinterpretAsUInt8 | ( | ) | const |
Equivalent to:
Equivalent to:
std::string G3D::replace | ( | const std::string & | s, |
const std::string & | pattern, | ||
const std::string & | replacement | ||
) |
Returns a string which is s, with all instances of pattern replaced
std::string G3D::resolveFilename | ( | const std::string & | filename | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Invokes select on one socket. Returns SOCKET_ERROR on error, 0 if there is no read pending, sock if there a read pending.
Invokes select on one socket.
|
inline |
|
inline |
|
inline |
void G3D::serialize | ( | const Array< T > & | array, |
BinaryOutput & | b | ||
) |
serialize(const T&, BinaryOutput&) must have been overridden as well
void G3D::serialize | ( | class BinaryOutput & | bo | ) | const |
void G3D::serialize | ( | const int & | b, |
TextOutput & | to | ||
) |
void G3D::serialize | ( | const double & | b, |
TextOutput & | to | ||
) |
void G3D::serialize | ( | const float & | b, |
TextOutput & | to | ||
) |
void G3D::serialize | ( | const std::string & | b, |
TextOutput & | to | ||
) |
void G3D::serialize | ( | const char * | b, |
TextOutput & | to | ||
) |
void G3D::serialize | ( | const Vector2 & | v, |
class BinaryOutput & | b | ||
) |
void G3D::serialize | ( | const Vector3::Axis & | a, |
class BinaryOutput & | bo | ||
) |
void G3D::serialize | ( | const Vector4 & | v, |
class BinaryOutput & | b | ||
) |
void G3D::serialize | ( | const Vector3 & | v, |
class BinaryOutput & | b | ||
) |
void G3D::setAssertionHook | ( | AssertionHook | hook | ) |
void G3D::setConsolePrintHook | ( | ConsolePrintHook | h | ) |
Called by consolePrintf after the log and terminal have been written to. Used by GConsole to intercept printing routines.
void G3D::setFailureHook | ( | AssertionHook | hook | ) |
Called by alwaysAssertM in case of failure in release mode. If returns true then the program exits with -1 (you can replace this with your own version that throws an exception or has other failure modes).
|
inline |
|
inline |
|
inline |
|
inline |
Computes |b|^e * sign(b)
|
inline |
sin(x)/x
|
inline |
|
inline |
The GLSL smoothstep function
|
inline |
|
inline |
|
inline |
A comparison function for passing to Array::sort.
std::string G3D::stringJoin | ( | const G3D::Array< std::string > & | a, |
char | joinChar | ||
) |
joinChar is not inserted at the beginning or end, just in between elements.
std::string G3D::stringJoin | ( | const G3D::Array< std::string > & | a, |
const std::string & | joinStr | ||
) |
Splits x at each occurance of splitChar.
|
inline |
|
inline |
|
inline |
|
inline |
A hash function that is faster than CRC32 for arbitrary long strings [From] http://www.azillionmonkeys.com/qed/hash.html by Paul Hsieh.
|
static |
Helper method for Bayer grbg and bggr –> rgb8
|
static |
Show a prompt on stdout
Any G3D::toAny | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
static |
std::string G3D::toLower | ( | const std::string & | x | ) |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
SimTime G3D::toSeconds | ( | int | hour, |
int | minute, | ||
double | seconds, | ||
AMPM | ap | ||
) |
Converts a 12 hour clock time into the number of seconds since midnight. Note that 12:00 PM is noon and 12:00 AM is midnight.
Example: toSeconds(10, 00, AM)
SimTime G3D::toSeconds | ( | int | hour, |
int | minute, | ||
AMPM | ap | ||
) |
std::string G3D::toString | ( | ) | const |
std::string G3D::toUpper | ( | const std::string & | x | ) |
|
static |
std::string G3D::trimWhitespace | ( | const std::string & | s | ) |
Strips whitespace from both ends of the string.
|
static |
|
inline |
|
inline |
Uniform random number between low and hi, inclusive. [low, hi]
|
explicit |
G3D::unorm16 | ( | const unorm16 & | other | ) |
|
explicit |
|
explicit |
Maps f to round(f * 65535).
|
explicit |
|
explicit |
G3D::unorm8 | ( | const unorm8 & | other | ) |
|
explicit |
Maps f to round(f * 255).
|
explicit |
G3D::Vector2int16 | ( | ) |
G3D::Vector2int16 | ( | G3D::int16 | _x, |
G3D::int16 | _y | ||
) |
|
explicit |
|
explicit |
|
explicit |
|
explicit |
G3D::Vector2int32 | ( | ) |
G3D::Vector2int32 | ( | G3D::int32 | _x, |
G3D::int32 | _y | ||
) |
|
explicit |
|
explicit |
G3D::Vector2int32 | ( | const class Vector2int16 & | v | ) |
G3D::Vector2unorm16 | ( | G3D::unorm16 | _x, |
G3D::unorm16 | _y | ||
) |
G3D::Vector2unorm16 | ( | float | _x, |
float | _y | ||
) |
|
explicit |
|
explicit |
|
explicit |
G3D::Vector3int16 | ( | ) |
G3D::Vector3int16 | ( | G3D::int16 | _x, |
G3D::int16 | _y, | ||
G3D::int16 | _z | ||
) |
|
explicit |
|
explicit |
G3D::Vector3int32 | ( | ) |
G3D::Vector3int32 | ( | int | _x, |
int | _y, | ||
int | _z | ||
) |
G3D::Vector3int32 | ( | const class Vector2int32 & | v, |
int | _z | ||
) |
G3D::Vector3int32 | ( | const class Vector2int16 & | v, |
int | _z | ||
) |
G3D::Vector3int32 | ( | const class Vector3int16 & | v | ) |
G3D::Vector3int32 | ( | const Any & | any | ) |
|
explicit |
Rounds to the nearest int
|
explicit |
std::string G3D::vformat | ( | const char * | fmt, |
va_list | argPtr | ||
) |
Like format, but can be called with the argument list from a ... function.
Thomas Wang's 64-to-32-bit mix hash based on Robert Jenkin's hash http://www.concentric.net/~ttwang/tech/inthash.htm
Found by Morgan to produce the best net performance for building tables from Vector4int16
std::string G3D::wordWrap | ( | const std::string & | input, |
int | numCols | ||
) |
Produces a new string that is the input string wrapped at a certain number of columns (where the line is broken at the latest space before the column limit.) Platform specific NEWLINEs are inserted to wrap.
|
inline |
Computes a floating point modulo; the result is t wrapped to the range [lo, hi).
|
inline |
|
inline |
void G3D::writeWholeFile | ( | const std::string & | filename, |
const std::string & | str, | ||
bool | flush = true |
||
) |
flush | If true (default), the file is ready for reading as soon as the function returns. If false, the function returns immediately and writes the file in the background. |
Vector2int32 G3D::xx | ( | ) | const |
Vector2int32 G3D::xy | ( | ) | const |
Vector2int32 G3D::xz | ( | ) | const |
|
static |
|
static |
|
static |
Vector2int32 G3D::yx | ( | ) | const |
Vector2int32 G3D::yy | ( | ) | const |
Vector2int32 G3D::yz | ( | ) | const |
|
static |
|
static |
bool G3D::zipfileExists | ( | const std::string & | filename, |
std::string & | outZipfile, | ||
std::string & | outInternalFile | ||
) |
Returns true if the given file (or directory) exists within a zipfile. Called if fileExists initially returns false and the lookInZipfiles flag has been set. Must not end in a trailing slash. Does not work for recursive zipfiles (.zips within another .zip)
filename | the path to test |
outZipfile | the path to the .zip file |
outInternalFile | the path (within the .zip) where the desired file is located, if valid |
If no zipfile exists, outZipfile and outInternalFile are unchanged
Vector2int32 G3D::zx | ( | ) | const |
Vector2int32 G3D::zy | ( | ) | const |
Vector2int32 G3D::zz | ( | ) | const |
|
static |
|
static |
|
static |
|
static |
Constant for passing to Array::resize
|
static |
|
static |
|
static |
|
static |
const char * G3D::NEWLINE = "\n" |
|
static |
|
static |
|
static |
|
static |
|
static |
const int G3D::SORT_DECREASING = -1 |
Constant for Array::sort
const int G3D::SORT_INCREASING = 1 |
Constant for Array::sort
G3D::unorm16 |
Represents numbers on [0, 1] in 16 bits as an unsigned normalized 0.8 fixed-point value using the same encoding scheme as OpenGL.
Note that arithmetic operations may over and under-flow, just like uint16 arithmetic.
OpenGL specifications can be found here: http://www.opengl.org/registry/specs/ARB/shading_language_packing.txt
G3D::unorm8 |
Represents numbers on [0, 1] in 8 bits as an unsigned normalized 0.8 fixed-point value using the same encoding scheme as OpenGL.
OpenGL specifications can be found here: <www.opengl.org/registry/specs/ARB/shading_language_packing.txt>
Note that arithmetic operations may over and under-flow, just like uint8 arithmetic.
Vector2int16::Vector2int16 |
G3D::Vector2int32 |
G3D::Vector2unorm16 |
Vector3int16::Vector3int16 |
G3D::Vector3int32::Vector3int32 |
\ Vector3int32 A Vector3 that packs its fields into uint32s.
G3D::int32 G3D::x |
G3D::int32 G3D::y |
G3D::int32 G3D::z |