mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
LibGL: Implement glTexEnvf
This controls how fetched texels are combined with the color that was produced by a preceding texture unit or with the vertex color if it is the first texture unit. Currently only a small subset of possible combine modes is implemented as required by glquake.
This commit is contained in:
parent
19a08ff187
commit
b54573739c
7 changed files with 66 additions and 7 deletions
|
@ -24,10 +24,14 @@ public:
|
|||
GLenum currently_bound_target() const { return m_currently_bound_target; }
|
||||
bool is_bound() const { return !m_currently_bound_texture.is_null(); }
|
||||
|
||||
void set_env_mode(GLenum mode) { m_env_mode = mode; }
|
||||
GLenum env_mode() const { return m_env_mode; }
|
||||
|
||||
private:
|
||||
mutable RefPtr<Texture2D> m_texture_target_2d { nullptr };
|
||||
mutable RefPtr<Texture> m_currently_bound_texture { nullptr };
|
||||
GLenum m_currently_bound_target;
|
||||
GLenum m_env_mode { GL_MODULATE };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue