| 100 | */ |
| 101 | template<typename T> |
| 102 | gl::GLuint createBuffer(gl::GLenum pTarget, size_t pSize, const T* pPtr, gl::GLenum pUsage) |
| 103 | { |
| 104 | gl::GLuint retVal = 0; |
| 105 | gl::glGenBuffers(1, &retVal); |
| 106 | gl::glBindBuffer(pTarget, retVal); |
| 107 | gl::glBufferData(pTarget, pSize*sizeof(T), pPtr, pUsage); |
| 108 | gl::glBindBuffer(pTarget, 0); |
| 109 | return retVal; |
| 110 | } |
| 111 | |
| 112 | #if defined(OS_WIN) |
| 113 | /* Get the paths to font files in Windows system directory |
no outgoing calls
no test coverage detected