Removed dep on assets

This commit is contained in:
IXtreme 2024-12-26 01:56:48 -05:00
parent faf7d81198
commit f62e5ac975
3 changed files with 10 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 344 B

View file

@ -241,7 +241,7 @@ float ScaleToFit(Vector2 src, Vector2 dst) {
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
// Initialization // Initialization
//-------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------
int screenWidth = 1280; int screenWidth = 800;
int screenHeight = 800; int screenHeight = 800;
// SetConfigFlags(FLAG_MSAA_4X_HINT | FLAG_WINDOW_RESIZABLE); // SetConfigFlags(FLAG_MSAA_4X_HINT | FLAG_WINDOW_RESIZABLE);

View file

@ -178,10 +178,17 @@ void MprisPlayer::UpdateTexture() {
} }
RayTexture::RayTexture() { RayTexture::RayTexture() {
tex = LoadTexture(ASSET_DIR "/null.png" ); auto rtex = LoadRenderTexture(300,300);
BeginTextureMode(rtex);
DrawRectangle(0,0,300,300,BLACK);
EndTextureMode();
auto img = LoadImageFromTexture(rtex.texture);
tex = LoadTextureFromImage(img);
UnloadImage(img);
UnloadRenderTexture(rtex);
GenTextureMipmaps(&tex); GenTextureMipmaps(&tex);
SetTextureFilter(tex, TEXTURE_FILTER_BILINEAR); SetTextureFilter(tex, TEXTURE_FILTER_BILINEAR);
path = ASSET_DIR "/null.png"; path = "null";
} }
RayTexture::RayTexture(Image img) { RayTexture::RayTexture(Image img) {