Skip to content

raylib.ImageToPOT

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Convert image to POT (power-of-two) NOTE: It could be useful on OpenGL ES 2.0 (RPI, HTML5)

Parameters

Parameter Default Value Note
image

Return value

None.

Notes

Example

img = raylib.GenImageColor(60, 40, raylib.RED)
raylib.ImageToPOT img, raylib.BLACK   // pads to 64x64
raylib.UnloadImage img

Clone this wiki locally