Adds color space to textures.
PiperOrigin-RevId: 761907261 Change-Id: Iec546d1d5907a15e57ef809ec31850640fc52915
This commit is contained in:
committed by
Copybara-Service
parent
62a9d5b98d
commit
3e9bc79b54
@@ -139,6 +139,16 @@ ENUMS: Mapping[str, EnumDecl] = dict([
|
||||
('mjNTEXROLE', 10),
|
||||
]),
|
||||
)),
|
||||
('mjtColorSpace',
|
||||
EnumDecl(
|
||||
name='mjtColorSpace',
|
||||
declname='enum mjtColorSpace_',
|
||||
values=dict([
|
||||
('mjCOLORSPACE_AUTO', 0),
|
||||
('mjCOLORSPACE_LINEAR', 1),
|
||||
('mjCOLORSPACE_SRGB', 2),
|
||||
]),
|
||||
)),
|
||||
('mjtIntegrator',
|
||||
EnumDecl(
|
||||
name='mjtIntegrator',
|
||||
|
||||
@@ -3339,6 +3339,14 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
doc='texture type (mjtTexture)',
|
||||
array_extent=('ntex',),
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='tex_colorspace',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='int'),
|
||||
),
|
||||
doc='texture colorspace (mjtColorSpace)',
|
||||
array_extent=('ntex',),
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='tex_height',
|
||||
type=PointerType(
|
||||
@@ -9613,6 +9621,11 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
type=ValueType(name='mjtTexture'),
|
||||
doc='texture type',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='colorspace',
|
||||
type=ValueType(name='mjtColorSpace'),
|
||||
doc='colorspace',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='builtin',
|
||||
type=ValueType(name='int'),
|
||||
|
||||
Reference in New Issue
Block a user