/// <summary> /// Init the renderer /// </summary> /// <returns></returns> public bool Init() { // set standard settings GL.Enable(EnableCap.CullFace); GL.CullFace(CullFaceMode.Back); GL.FrontFace(FrontFaceDirection.Ccw); // generate global vertex array object vertexArrayObjectId = GL.GenVertexArray(); GL.BindVertexArray(vertexArrayObjectId); // create resources deviceBuffer.Create(reservedStartingSpace, BufferUsageHint.StreamDraw); colorShader.Create(); litColorShader.Create(); litTexturerShader.Create(); return(true); }