mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 20:39:18 +02:00
build 170626. individual self-illumination levels for interior sections, automatic merging of suitable terrain geometry during load from text files, unused resource release by geometry bank manager, support for ui backgrounds with width:height ratio other than 4:3, comment parsing optimization, minor bug fixes
This commit is contained in:
14
Texture.h
14
Texture.h
@@ -29,8 +29,18 @@ struct opengl_texture {
|
||||
|
||||
// methods
|
||||
void load();
|
||||
resource_state bind();
|
||||
resource_state create();
|
||||
resource_state
|
||||
bind();
|
||||
resource_state
|
||||
create();
|
||||
inline
|
||||
int
|
||||
width() const {
|
||||
return data_width; }
|
||||
inline
|
||||
int
|
||||
height() const {
|
||||
return data_height; }
|
||||
// members
|
||||
GLuint id{ (GLuint)-1 }; // associated GL resource
|
||||
bool has_alpha{ false }; // indicates the texture has alpha channel
|
||||
|
||||
Reference in New Issue
Block a user