Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////////////////
- template <typename T>
- void VertexBufferEditor::position( sx::Uint32 i, sx::Uint32 strideConverted, T x, T y, T z )
- {
- T* p = (T*) this->positionPtr + (i * strideConverted);
- *p = x;
- *(++p) = y;
- *(++p) = z;
- }
- /////////////////////////////////////////////////
- template <typename T>
- void VertexBufferEditor::texture( sx::Uint32 i, T x, T y )
- {
- T* p = (T*) this->texturePtr + (i * (this->buffer->getStride() / sizeof(T)) ) ;
- *p = x;
- *(++p) = y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement