Inertia's picture

ARB_draw_instanced

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

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

C: void DrawArraysInstancedARB(enum mode, int first, sizei count, sizei primcount);
C#: void DrawArraysInstance(OpenTK.Graphics.BeginMode mode, Int32 first, Int32 count, Int32 primcount)

C: void DrawElementsInstancedARB(enum mode, sizei count, enum type, const void *indices, sizei primcount);
C#: void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, IntPtr indices, Int32 primcount)

The imports exist and look correct, only 2 small problems noticed:

1) Naming. Tool probably stripped the "d" assuming this is a (double) overload. "Instanced" is correct.

2) Minor flaw in overload:

void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] object indices, Int32 primcount)

The function cannot return anything [In] is sufficient.


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

Fixed in rev. 1669.

the Fiddler's picture

#2

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

Closing issues fixed in 0.9.7.

Inertia's picture

#3

Status:closed» open
"Inertia" wrote:

void DrawElementsInstance(OpenTK.Graphics.BeginMode mode, Int32 count, OpenTK.Graphics.DrawElementsType type, [In, Out] object indices, Int32 primcount)

The function cannot return anything [In] is sufficient.

Issue not fixed.

the Fiddler's picture

#4

Status:open» closed

Filed this as a separate issue: #775: Remove [In] [Out] attributes from the GL wrappers.