-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setSpriteColor(Color) -> setSpriteColor(Rgb)
- Loading branch information
Showing
5 changed files
with
37 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
// Copyright 2012-2023 Jan Niklas Hasse <[email protected]> | ||
// Copyright 2012-2024 Jan Niklas Hasse <[email protected]> | ||
// For conditions of distribution and use, see copyright notice in LICENSE.txt | ||
/// Contains jngl::Sprite class and related functions | ||
/// \file | ||
#pragma once | ||
|
||
#include "Color.hpp" | ||
#include "Drawable.hpp" | ||
#include "Rgb.hpp" | ||
#include "ShaderProgram.hpp" | ||
#include "Vec2.hpp" | ||
|
||
|
@@ -185,7 +185,8 @@ void setSpriteColor(unsigned char red, unsigned char green, unsigned char blue, | |
|
||
void setSpriteColor(unsigned char red, unsigned char green, unsigned char blue); | ||
|
||
void setSpriteColor(Color); | ||
/// Sets the global color used for drawing Sprites, leaves the alpha value untouched | ||
void setSpriteColor(Rgb); | ||
|
||
void setSpriteAlpha(unsigned char alpha); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters