Removed dep on assets
This commit is contained in:
parent
faf7d81198
commit
f62e5ac975
BIN
assets/null.png
BIN
assets/null.png
Binary file not shown.
Before Width: | Height: | Size: 344 B |
|
@ -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);
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue