mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Implement support for array textures in GL driver
note: feature detection was not implemented in the legacy driver, but the code itself probably works.
This commit is contained in:
parent
d5bf094f9a
commit
46db688cc8
14 changed files with 111 additions and 72 deletions
|
@ -232,6 +232,15 @@ public:
|
|||
information. */
|
||||
virtual ITexture *addTexture(const io::path &name, IImage *image) = 0;
|
||||
|
||||
/**
|
||||
* Creates an array texture from IImages.
|
||||
* @param name A name for the texture.
|
||||
* @param images Pointer to array of images
|
||||
* @param count Number of images (must be at least 1)
|
||||
* @return Pointer to the newly created texture
|
||||
*/
|
||||
virtual ITexture *addArrayTexture(const io::path &name, IImage **images, u32 count) = 0;
|
||||
|
||||
//! Creates a cubemap texture from loaded IImages.
|
||||
/** \param name A name for the texture. Later calls of getTexture() with this name will return this texture.
|
||||
The name can _not_ be empty.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue