Add type attributes to help codegen.
PiperOrigin-RevId: 937935655 Change-Id: I14883a98b7b9b4bcc3dea8b60d839138c14ea444
This commit is contained in:
committed by
Copybara-Service
parent
463b0fb27f
commit
2a5345ba8c
@@ -1378,8 +1378,8 @@ typedef struct mjrRect_ { // OpenGL rectangle
|
|||||||
} mjrRect;
|
} mjrRect;
|
||||||
typedef struct mjrVertexAttribute_ { // vertex attribute format specification
|
typedef struct mjrVertexAttribute_ { // vertex attribute format specification
|
||||||
const void* bytes; // vertex data
|
const void* bytes; // vertex data
|
||||||
int usage; // mjrVertexAttributeUsage; e.g. position, normal, etc.
|
int usage; // position, normal, etc [mjrVertexAttributeUsage]
|
||||||
int type; // mjrVertexAttributeType; e.g. float3, ubyte4, etc.
|
int type; // float3, ubyte4, etc. [mjrVertexAttributeType]
|
||||||
} mjrVertexAttribute;
|
} mjrVertexAttribute;
|
||||||
typedef struct mjrContext_ { // custom OpenGL context
|
typedef struct mjrContext_ { // custom OpenGL context
|
||||||
// parameters copied from mjVisual
|
// parameters copied from mjVisual
|
||||||
|
|||||||
@@ -119,8 +119,8 @@ typedef struct mjrRect_ { // OpenGL rectangle
|
|||||||
|
|
||||||
typedef struct mjrVertexAttribute_ { // vertex attribute format specification
|
typedef struct mjrVertexAttribute_ { // vertex attribute format specification
|
||||||
const void* bytes; // vertex data
|
const void* bytes; // vertex data
|
||||||
int usage; // mjrVertexAttributeUsage; e.g. position, normal, etc.
|
int usage; // position, normal, etc [mjrVertexAttributeUsage]
|
||||||
int type; // mjrVertexAttributeType; e.g. float3, ubyte4, etc.
|
int type; // float3, ubyte4, etc. [mjrVertexAttributeType]
|
||||||
} mjrVertexAttribute;
|
} mjrVertexAttribute;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11013,12 +11013,12 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
|||||||
StructFieldDecl(
|
StructFieldDecl(
|
||||||
name='usage',
|
name='usage',
|
||||||
type=ValueType(name='int'),
|
type=ValueType(name='int'),
|
||||||
doc='mjrVertexAttributeUsage; e.g. position, normal, etc.',
|
doc='position, normal, etc [mjrVertexAttributeUsage]',
|
||||||
),
|
),
|
||||||
StructFieldDecl(
|
StructFieldDecl(
|
||||||
name='type',
|
name='type',
|
||||||
type=ValueType(name='int'),
|
type=ValueType(name='int'),
|
||||||
doc='mjrVertexAttributeType; e.g. float3, ubyte4, etc.',
|
doc='float3, ubyte4, etc. [mjrVertexAttributeType]',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
|
|||||||
Reference in New Issue
Block a user