Allow flipping textures with any number of channels and user provided pixel data.
PiperOrigin-RevId: 813256285 Change-Id: I0d49885dc483ab8f093b2566ec4bef355575505e
This commit is contained in:
committed by
Copybara-Service
parent
bdccbcc60a
commit
2dc533b63b
@@ -1450,18 +1450,17 @@ class mjCTexture : public mjCTexture_, private mjsTexture {
|
||||
void LoadCubeSingle(std::string filename, const mjVFS* vfs); // load cube from single file
|
||||
void LoadCubeSeparate(const mjVFS* vfs); // load cube from separate files
|
||||
|
||||
void LoadFlip(std::string filename, const mjVFS* vfs, // load and flip
|
||||
std::vector<unsigned char>& image,
|
||||
unsigned int& w, unsigned int& h, bool& is_srgb);
|
||||
void FlipIfNeeded(std::vector<std::byte>& image, unsigned int w, unsigned int h);
|
||||
|
||||
void LoadPNG(mjResource* resource,
|
||||
std::vector<unsigned char>& image,
|
||||
void LoadFlip(std::string filename, const mjVFS* vfs, // load and flip
|
||||
std::vector<std::byte>& image, unsigned int& w, unsigned int& h,
|
||||
bool& is_srgb);
|
||||
|
||||
void LoadPNG(mjResource* resource, std::vector<std::byte>& image,
|
||||
unsigned int& w, unsigned int& h, bool& is_srgb);
|
||||
void LoadKTX(mjResource* resource,
|
||||
std::vector<unsigned char>& image,
|
||||
void LoadKTX(mjResource* resource, std::vector<std::byte>& image,
|
||||
unsigned int& w, unsigned int& h, bool& is_srgb);
|
||||
void LoadCustom(mjResource* resource,
|
||||
std::vector<unsigned char>& image,
|
||||
void LoadCustom(mjResource* resource, std::vector<std::byte>& image,
|
||||
unsigned int& w, unsigned int& h, bool& is_srgb);
|
||||
|
||||
bool clear_data_; // if true, data_ is empty and should be filled by Compile
|
||||
|
||||
Reference in New Issue
Block a user