mirror of
https://github.com/NoelFB/blah.git
synced 2026-11-10 00:35:14 +08:00
Sprite Batcher has fields for optional texture/sampler uniform names
This commit is contained in:
1 parent
ba3c60b6cd
commit
8f9c6aa9ff
4 files changed
+37
-5
No files matched your search
@@ -48,7 +48,9 @@ namespace Blah
|
||||
{
|
||||
public:
|
||||
|
||||
// The name of the Matrix Uniform in the Shader
|
||||
// The name of the default uniforms to set
|
||||
const char* texture_uniform;
|
||||
const char* sampler_uniform;
|
||||
const char* matrix_uniform;
|
||||
|
||||
// Default Sampler, set on clear
|
||||
|
||||
@@ -65,6 +65,9 @@ namespace Blah
|
||||
// Gets a pointer to the values of the given Uniform, or nullptr if it doesn't exist.
|
||||
const float* get_value(const char* name, i64* length = nullptr) const;
|
||||
|
||||
// Checks if the shader attached to the material has a uniform value with the given name
|
||||
bool has_value(const char* name) const;
|
||||
|
||||
// Returns the internal Texture buffer
|
||||
const Vector<TextureRef>& textures() const;
|
||||
|
||||
|
||||
Reference in new issue
Block a user