chore: initial commit

This commit is contained in:
fallenoak 2023-01-02 13:17:18 -06:00
commit 70b00c5c38
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
965 changed files with 264882 additions and 0 deletions

31
src/gx/RenderState.cpp Normal file
View file

@ -0,0 +1,31 @@
#include "gx/RenderState.hpp"
#include "gx/Shader.hpp"
#include "gx/Device.hpp"
#include "gx/Types.hpp"
#include "gx/texture/CGxTex.hpp"
#include <storm/Error.hpp>
void GxRsPop() {
g_theGxDevicePtr->RsPop();
}
void GxRsPush() {
g_theGxDevicePtr->RsPush();
}
void GxRsSet(EGxRenderState which, int32_t value) {
STORM_ASSERT(which < GxRenderStates_Last);
g_theGxDevicePtr->RsSet(which, value);
}
void GxRsSet(EGxRenderState which, CGxShader* value) {
g_theGxDevicePtr->RsSet(which, value);
}
void GxRsSet(EGxRenderState which, CGxTex* value) {
g_theGxDevicePtr->RsSet(which, value);
}
void GxRsSetAlphaRef() {
g_theGxDevicePtr->RsSetAlphaRef();
}