#include <texture.hpp>
|
| Texture ()=default |
|
| Texture (const std::string &path) |
|
| Texture (const Eng3D::IO::Asset::Base *asset) |
|
| Texture (size_t _width, size_t _height, size_t _bpp=32) |
|
| ~Texture () override |
|
void | create_dummy () |
| This dummy texture helps to avoid crashes due to missing buffers or so, and also gives visual aid of errors. More...
|
|
void | upload (TextureOptions options=default_options) |
| Frontend for uploading (schedules or instantly uploads) More...
|
|
void | upload (SDL_Surface *surface) |
| Uploads a text texture (shceduled or not) if it's scheduled, the surface is handed ownership over to the scheduler and it will be automatically deallocated once the request is fullfilled. More...
|
|
void | gen_mipmaps () const |
|
void | bind () const |
| Binds the texture to the current OpenGL context. More...
|
|
void | delete_gputex () |
| Deletes the OpenGL representation of this texture. More...
|
|
void | guillotine (const Eng3D::Texture &map, int x, int y, int w, int h) |
|
void | to_file (const std::string &filename) override |
|
| BinaryImage ()=default |
|
| BinaryImage (const Eng3D::IO::Path &path) |
|
| BinaryImage (size_t _width, size_t _height, size_t bpp=32) |
|
| BinaryImage (const BinaryImage &tex) |
|
BinaryImage & | operator= (const BinaryImage &)=delete |
|
virtual | ~BinaryImage ()=default |
|
virtual void | from_file (const Eng3D::IO::Path &path) |
|
Eng3D::Color | get_pixel (size_t x, size_t y) const |
| Obtains a pixel from the binary image. More...
|
|
Definition at line 103 of file texture.hpp.
◆ Texture() [1/4]
Eng3D::Texture::Texture |
( |
| ) |
|
|
default |
◆ Texture() [2/4]
Eng3D::Texture::Texture |
( |
const std::string & |
path | ) |
|
|
inline |
◆ Texture() [3/4]
◆ Texture() [4/4]
Eng3D::Texture::Texture |
( |
size_t |
_width, |
|
|
size_t |
_height, |
|
|
size_t |
_bpp = 32 |
|
) |
| |
|
inline |
◆ ~Texture()
Eng3D::Texture::~Texture |
( |
| ) |
|
|
override |
◆ bind()
void Eng3D::Texture::bind |
( |
| ) |
const |
◆ create_dummy()
void Eng3D::Texture::create_dummy |
( |
| ) |
|
This dummy texture helps to avoid crashes due to missing buffers or so, and also gives visual aid of errors.
Definition at line 64 of file texture.cpp.
◆ delete_gputex()
void Eng3D::Texture::delete_gputex |
( |
| ) |
|
◆ gen_mipmaps()
void Eng3D::Texture::gen_mipmaps |
( |
| ) |
const |
◆ guillotine()
void Eng3D::Texture::guillotine |
( |
const Eng3D::Texture & |
map, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
◆ to_file()
void Eng3D::Texture::to_file |
( |
const std::string & |
filename | ) |
|
|
overridevirtual |
◆ upload() [1/2]
void Eng3D::Texture::upload |
( |
SDL_Surface * |
surface | ) |
|
|
inline |
Uploads a text texture (shceduled or not) if it's scheduled, the surface is handed ownership over to the scheduler and it will be automatically deallocated once the request is fullfilled.
- Parameters
-
surface | Surface to base texture from |
Definition at line 136 of file texture.hpp.
◆ upload() [2/2]
Frontend for uploading (schedules or instantly uploads)
- Parameters
-
options | Options for upload |
Definition at line 128 of file texture.hpp.
◆ Eng3D::TextureManager
◆ id
unsigned int Eng3D::Texture::id = 0 |
◆ managed
bool Eng3D::Texture::managed = false |
The documentation for this class was generated from the following files: