Rename mjrf_getSamplerType to mjrf_getTextureSamplerType.
PiperOrigin-RevId: 937193469 Change-Id: I56f856e257fa1cf99b643f794139ef85817a0bb9
This commit is contained in:
committed by
Copybara-Service
parent
080668df42
commit
29b49991a2
@@ -219,7 +219,7 @@ int mjrf_getTextureWidth(const mjrfTexture* texture);
|
||||
int mjrf_getTextureHeight(const mjrfTexture* texture);
|
||||
|
||||
// Returns the sampler type (mjrSamplerType) used by the texture.
|
||||
int mjrf_getSamplerType(const mjrfTexture* texture);
|
||||
int mjrf_getTextureSamplerType(const mjrfTexture* texture);
|
||||
|
||||
// ## Meshes (mjrfMesh)
|
||||
//
|
||||
|
||||
@@ -201,7 +201,7 @@ static void UpdateGeomMaterial(mjrfRenderable* renderable, const mjvGeom& geom,
|
||||
|
||||
if (material.color_texture) {
|
||||
const bool tex_uniform = model->mat_texuniform[geom.matid];
|
||||
if (mjrf_getSamplerType(material.color_texture) == mjTEXTURE_2D) {
|
||||
if (mjrf_getTextureSamplerType(material.color_texture) == mjTEXTURE_2D) {
|
||||
// For 2D textures, `tex_repeat` specifies how many times the texture
|
||||
// image is repeated. The `tex_uniform` flag determines if the repetition
|
||||
// is applied at in object space (false) or in world space (true).
|
||||
|
||||
@@ -193,7 +193,7 @@ int mjrf_getTextureHeight(const mjrfTexture* texture) {
|
||||
return mujoco::Texture::downcast(texture)->GetHeight();
|
||||
}
|
||||
|
||||
int mjrf_getSamplerType(const mjrfTexture* texture) {
|
||||
int mjrf_getTextureSamplerType(const mjrfTexture* texture) {
|
||||
return mujoco::Texture::downcast(texture)->GetSamplerType();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user