Example #1
0
        public void Initialize()
        {
            OpenTKWindowlessContext.BindDummyContext();

            shader = ShaderTestUtils.CreateValidShader();
            mesh   = new TestMesh();

            mesh.InvalidAttribSet += Mesh_OnInvalidAttribSet;
        }
        public void Initialize()
        {
            OpenTKWindowlessContext.BindDummyContext();

            buffer1 = new BufferObject(BufferTarget.ArrayBuffer);
            buffer1.SetData(new byte[vertexCount * 4 * sizeof(byte)], BufferUsageHint.StaticDraw);

            buffer2 = new BufferObject(BufferTarget.ArrayBuffer);
            buffer2.SetData(new byte[vertexCount * 3 * sizeof(byte)], BufferUsageHint.StaticDraw);

            buffer3 = new BufferObject(BufferTarget.ArrayBuffer);
            buffer3.SetData(new byte[vertexCount * 1 * sizeof(byte)], BufferUsageHint.StaticDraw);

            // One byte of extra padding removed.
            buffer4 = new BufferObject(BufferTarget.ArrayBuffer);
            buffer4.SetData(new byte[(vertexCount * 5) - 1], BufferUsageHint.StaticDraw);
        }
 public void Initialize()
 {
     OpenTKWindowlessContext.BindDummyContext();
 }
Example #4
0
 public virtual void Initialize()
 {
     // Set up the context for all the tests.
     OpenTKWindowlessContext.BindDummyContext();
 }
 public void Initialize()
 {
     OpenTKWindowlessContext.BindDummyContext();
     meshBuffer = new BufferObject(BufferTarget.ArrayBuffer);
     meshBuffer.SetData(new byte[8], BufferUsageHint.StaticDraw);
 }