MCPcopy Create free account
hub / github.com/arrayfire/forge / createBuffer

Function createBuffer

src/backend/opengl/common.hpp:102–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 */
101template<typename T>
102gl::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

Callers 3

screenQuadVBOFunction · 0.85
screenQuadVAOFunction · 0.85
loadFontMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected