mirror of
https://github.com/simtactics/niotso.git
synced 2025-07-04 05:37:02 -04:00
Graphics: Added font rendering functions Graphics::DrawText and Graphics::StringImage.
FileHandler: Added support for wav Audio: Added support to play back a sound with XAudio2. We can't delete sounds until we make our own system to keep track of available voices. LoginScreen scene: Upped framerate from 15fps to tickless, and added new logic to clone the scrolling text at the bottom. All of it.
This commit is contained in:
parent
64a5c0a425
commit
06f13d50ac
14 changed files with 429 additions and 162 deletions
|
@ -42,7 +42,8 @@ enum FErr {
|
|||
};
|
||||
|
||||
enum ImageFormat_t {
|
||||
FIMG_BGR24
|
||||
FIMG_BGR24,
|
||||
FIMG_BGRA32
|
||||
};
|
||||
|
||||
struct Image_t {
|
||||
|
@ -51,7 +52,7 @@ struct Image_t {
|
|||
uint8_t * Data;
|
||||
};
|
||||
|
||||
struct Audio_t {
|
||||
struct Sound_t {
|
||||
unsigned Channels;
|
||||
unsigned SamplingRate;
|
||||
unsigned BitDepth;
|
||||
|
@ -66,7 +67,7 @@ extern size_t FileSize;
|
|||
|
||||
uint8_t * ReadFile(const char * Filename);
|
||||
Image_t * ReadImageFile(const char * Filename);
|
||||
Audio_t * ReadAudioFile(const char * Filename);
|
||||
Sound_t * ReadSoundFile(const char * Filename);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue