Changeset 1405


Ignore:
Timestamp:
May 20, 2012, 2:30:52 PM (9 years ago)
Author:
sam
Message:

math: declare some HLSL-compliant types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/math/vector.h

    r1401 r1405  
    6363DECLARE_VECTOR_TYPEDEFS(Mat3, mat3)
    6464DECLARE_VECTOR_TYPEDEFS(Mat4, mat4)
     65
     66/*
     67 * HLSL/Cg-compliant type names.
     68 */
     69
     70typedef vec2 float2;
     71typedef vec3 float3;
     72typedef vec4 float4;
     73typedef mat2 float2x2;
     74typedef mat3 float3x3;
     75typedef mat4 float4x4;
     76
     77typedef ivec2 int2;
     78typedef ivec3 int3;
     79typedef ivec4 int4;
     80typedef imat2 int2x2;
     81typedef imat3 int3x3;
     82typedef imat4 int4x4;
    6583
    6684/*
Note: See TracChangeset for help on using the changeset viewer.