Skip to content

Texture

Noah Gallo edited this page Mar 12, 2023 · 2 revisions

Texture

Textures are used to draw specific images onto meshes. The Texture class handles the loading and buffering of 2D textures.

The Texture class does not support manipulating textures, but only allows for textures to be loaded from image files.

'.png' files are the only tested image formats.

Public Methods

Signature Return Type Description
LoadTexture(string filepath) void Loads a texture from a file
Use() void Tells OpenGL to use this texture when rendering the next object

Clone this wiki locally