SDL/Texture: made info struct take a texture ptr directly
Will allow me to construct one directly from a pointer if I don't have a wrapper object.
This commit is contained in:
parent
2cddf5e2c5
commit
0d69cbad69
2 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ void texture::destroy_texture()
|
|||
}
|
||||
}
|
||||
|
||||
texture::info::info(const texture& t)
|
||||
texture::info::info(SDL_Texture* t)
|
||||
: format(0)
|
||||
, access(0)
|
||||
, w(0)
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
/** Small wrapper that queries metadata about the provided texture. */
|
||||
struct info
|
||||
{
|
||||
explicit info(const texture& t);
|
||||
explicit info(SDL_Texture* t);
|
||||
|
||||
Uint32 format;
|
||||
int access;
|
||||
|
|
Loading…
Add table
Reference in a new issue