Inertia's picture

ARB_instanced_arrays

Project:The Open Toolkit library
Version:0.9.7
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

http://www.opengl.org/registry/specs/ARB/instanced_arrays.txt

C: void VertexAttribDivisorARB(uint index, uint divisor);
C#: public static void VertexAttribDivisor(UInt32 index, UInt32 divisor)
This is correct and on svn.

Add to enum OpenTK.Graphics.VertexAttribParameterArb

VERTEX_ATTRIB_ARRAY_DIVISOR_ARB 0x88FE

--------------------------

Minor problem as before, the Nv specific extension does not use the same enum as the Arb. These 2 functions should be equivalent:

 public static void GetVertexAttrib(UInt32 index, OpenTK.Graphics.All pname, [Out] Double[] @params)
            {
                unsafe
                {
                    fixed (Double* @params_ptr = @params)
                    {
                        Delegates.glGetVertexAttribdvNV((UInt32)index, (OpenTK.Graphics.All)pname, (Double*)@params_ptr);
                    }
                }
            }
 
 public static void GetVertexAttrib(Int32 index, OpenTK.Graphics.VertexAttribParameterArb pname, [Out] Double[] @params)
            {
                unsafe
                {
                    fixed (Double* @params_ptr = @params)
                    {
                        Delegates.glGetVertexAttribdvARB((UInt32)index, (OpenTK.Graphics.VertexAttribParameterArb)pname, (Double*)@params_ptr);
                    }
                }
            }

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Status:open» fixed

Committed to rev. 1680. I haven't verified the NV changes (use the ARB functions instead!)

the Fiddler's picture

#2

Version:0.9.x-dev» 0.9.7
Status:fixed» closed

Closing issues fixed in 0.9.7.