Changeset 68
- Timestamp:
- 05/31/13 19:31:29 (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/nv/io_event.hh
r67 r68 103 103 NV_REGISTER_NAME( system_event ); 104 104 105 struct i nput_event105 struct io_event 106 106 { 107 107 io_event_code type; … … 114 114 }; 115 115 }; 116 NV_REGISTER_NAME( i nput_event );116 NV_REGISTER_NAME( io_event ); 117 117 118 118 const char* get_key_name( key_code key ); -
trunk/nv/types.hh
r67 r68 37 37 INT_VECTOR_2, 38 38 INT_VECTOR_3, 39 INT_VECTOR_4 40 }; 39 INT_VECTOR_4, 40 // unsupported gl conversion, remove? 41 BYTE_VECTOR_2, 42 BYTE_VECTOR_3, 43 BYTE_VECTOR_4, 44 }; 45 46 typedef glm::detail::tvec2<uint8> i8vec2; 47 typedef glm::detail::tvec3<uint8> i8vec3; 48 typedef glm::detail::tvec4<uint8> i8vec4; 41 49 42 50 typedef glm::vec2 vec2; … … 70 78 template <> struct enum_to_type< INT_VECTOR_4 > { typedef ivec4 type; }; 71 79 80 template <> struct enum_to_type< BYTE_VECTOR_2 > { typedef i8vec2 type; }; 81 template <> struct enum_to_type< BYTE_VECTOR_3 > { typedef i8vec3 type; }; 82 template <> struct enum_to_type< BYTE_VECTOR_4 > { typedef i8vec4 type; }; 83 72 84 template <> struct enum_to_type< FLOAT_MATRIX_2 > { typedef mat2 type; }; 73 85 template <> struct enum_to_type< FLOAT_MATRIX_3 > { typedef mat3 type; }; … … 92 104 template <> struct type_to_enum< ivec4 > { static const etype type = INT_VECTOR_4; }; 93 105 106 template <> struct type_to_enum< i8vec2 > { static const etype type = BYTE_VECTOR_2; }; 107 template <> struct type_to_enum< i8vec3 > { static const etype type = BYTE_VECTOR_3; }; 108 template <> struct type_to_enum< i8vec4 > { static const etype type = BYTE_VECTOR_4; }; 109 94 110 template <> struct type_to_enum< mat2 > { static const etype type = FLOAT_MATRIX_2; }; 95 111 template <> struct type_to_enum< mat3 > { static const etype type = FLOAT_MATRIX_3; }; … … 125 141 template <> inline const char* get_type_name< ivec3 > () { return "ivec3"; } 126 142 template <> inline const char* get_type_name< ivec4 > () { return "ivec4"; } 143 144 template <> inline const char* get_type_name< i8vec2 > () { return "i8vec2"; } 145 template <> inline const char* get_type_name< i8vec3 > () { return "i8vec3"; } 146 template <> inline const char* get_type_name< i8vec4 > () { return "i8vec4"; } 127 147 128 148 template <> inline const char* get_type_name< mat2 > () { return "mat2"; } -
trunk/src/gl/gl_enum.cc
r62 r68 205 205 case INT_VECTOR_3 : return GL_INT_VEC3; 206 206 case INT_VECTOR_4 : return GL_INT_VEC4; 207 // remove, error or ? 208 case BYTE_VECTOR_2 : return GL_INT_VEC2; 209 case BYTE_VECTOR_3 : return GL_INT_VEC3; 210 case BYTE_VECTOR_4 : return GL_INT_VEC4; 207 211 default : return 0; // TODO: throw! 208 212 }
Note: See TracChangeset
for help on using the changeset viewer.