Ankush's Garage
A collection of stuff made by Ankush Roy
Loading...
Searching...
No Matches
Common.cpp File Reference
#include "Core/Common/Common.h"
#include "config.h"

Namespaces

namespace  Common
 

Functions

const std::filesystem::path & Common::GetBasePath ()
 
SDL_GPUShader * Common::LoadShader (SDL_GPUDevice *device, const std::string &shaderFilename, Uint32 samplerCount, Uint32 uniformBufferCount, Uint32 storageBufferCount, Uint32 storageTextureCount)
 This is a function that returns a compiled shader after taking the path to shader.
 
SDL_Surface * Common::LoadImage (const std::string &imageFileName, int desiredChannels)