OSDN Git Service

rm latex/
[moflib/moflib.git] / oldmof / VertexBuffer.hpp
1 #pragma once
2 #include <boost/scoped_ptr.hpp>
3 #include "mof/VertexTypes.hpp"
4 #include <boost/utility.hpp>
5
6 namespace mof{
7
8
9
10 template <class T>
11 class VertexBuffer : boost::noncopyable{
12         
13         struct Impl;
14         boost::scoped_ptr<Impl> m_pImpl;
15 public:
16         VertexBuffer
17         (
18                 const T& front , const T& back , 
19                 mof::PRIMITIVE_TYPE primitiveType = PRIMITIVE_TYPE_TRIANGLELIST 
20         );
21         ~VertexBuffer();
22
23         int getLength() const;
24         mof::PRIMITIVE_TYPE getPrimitiveType() const;
25         void draw() const;
26
27 };
28
29         
30 }