MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / Load

Method Load

include/TextureUnmanaged.hpp:101–106  ·  view source on GitHub ↗

* Load texture from image data */

Source from the content-addressed store, hash-verified

99 * Load texture from image data
100 */
101 void Load(const ::Image& image) {
102 set(::LoadTextureFromImage(image));
103 if (!IsValid()) {
104 throw RaylibException("Failed to load Texture from Image");
105 }
106 }
107
108 /**
109 * Load cubemap from image, multiple image cubemap layouts supported

Callers

nothing calls this directly

Calls 4

RaylibExceptionClass · 0.85
LoadTextureFunction · 0.85
c_strMethod · 0.80
IsValidFunction · 0.70

Tested by

no test coverage detected