Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Namespaces | Macros | Functions
texture.cpp File Reference
#include "engine/graphics/texture.h"
#include <stb_image.h>
#include <glad/glad.h>
#include <stb_image_write.h>

Namespaces

namespace  cqsp
 
namespace  cqsp::asset
 When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to find out how to add a resource to the game.
 

Macros

#define STB_IMAGE_IMPLEMENTATION
 
#define STB_IMAGE_WRITE_IMPLEMENTATION
 

Functions

unsigned int cqsp::asset::CreateTexture (unsigned char *data, int width, int height, int components, const TextureLoadingOptions &options)
 
void cqsp::asset::CreateTexture (Texture &texture, unsigned char *data, int width, int height, int components, const TextureLoadingOptions &options)
 
void cqsp::asset::LoadCubemapData (Texture &texture, std::vector< unsigned char * > &faces, int width, int height, int components, TextureLoadingOptions &options)
 
bool cqsp::asset::SaveImage (const char *path, int width, int height, int components, const unsigned char *data, bool flip)
 

Macro Definition Documentation

◆ STB_IMAGE_IMPLEMENTATION

#define STB_IMAGE_IMPLEMENTATION

◆ STB_IMAGE_WRITE_IMPLEMENTATION

#define STB_IMAGE_WRITE_IMPLEMENTATION