Adds color space to textures.

PiperOrigin-RevId: 761907261
Change-Id: Iec546d1d5907a15e57ef809ec31850640fc52915
This commit is contained in:
Google DeepMind
2025-05-22 04:32:04 -07:00
committed by Copybara-Service
parent 62a9d5b98d
commit 3e9bc79b54
17 changed files with 123 additions and 23 deletions
+10
View File
@@ -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',
+13
View File
@@ -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'),