Changeset 53


Ignore:
Timestamp:
05/29/13 14:37:46 (12 years ago)
Author:
epyon
Message:
  • lua_glm - powertool - almost complete implementation of glm/glsl like vectors (templated lua registration)
  • lua_glm - ivec2, ivec3, ivec3, vec2, vec3, vec4 supported, adding others is trivial (one line)
  • lua_glm - full support for swizzle and partial construction
Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/nv/types.hh

    r44 r53  
    109109        template <> inline const char* get_type_name<f64> () { return "f64"; }
    110110
     111        template <> inline const char* get_type_name< vec2 > () { return "vec2"; }
     112        template <> inline const char* get_type_name< vec3 > () { return "vec3"; }
     113        template <> inline const char* get_type_name< vec4 > () { return "vec4"; }
     114
     115        template <> inline const char* get_type_name< ivec2 > () { return "ivec2"; }
     116        template <> inline const char* get_type_name< ivec3 > () { return "ivec3"; }
     117        template <> inline const char* get_type_name< ivec4 > () { return "ivec4"; }
     118
     119        template <> inline const char* get_type_name< mat2 > () { return "mat2"; }
     120        template <> inline const char* get_type_name< mat3 > () { return "mat3"; }
     121        template <> inline const char* get_type_name< mat4 > () { return "mat4"; }
     122
    111123        template <> inline const char* get_type_name<bool> () { return "bool"; }
    112124
  • trunk/tests/lualib_test/lualib_test.cc

    r52 r53  
    11#include <nv/lib/lua.hh>
    22#include <nv/lua/lua_raw.hh>
     3#include <nv/lua/lua_glm.hh>
    34#include <nv/logger.hh>
    45#include <string>
     
    2425                { NULL, NULL}
    2526        };
     27
     28        nlua_register_glm( lua_state );
    2629
    2730        const luaL_Reg *lib = lualibs;
Note: See TracChangeset for help on using the changeset viewer.