mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Code used to test some features (and resources)
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
*
|
||||
* raylib test - Testing LoadImage() and CreateTexture()
|
||||
*
|
||||
* This example has been created using raylib 1.0 (www.raylib.com)
|
||||
* This test has been created using raylib 1.0 (www.raylib.com)
|
||||
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details)
|
||||
*
|
||||
* Copyright (c) 2013 Ramon Santamaria (Ray San - raysan@raysanweb.com)
|
||||
@ -23,7 +23,7 @@ int main()
|
||||
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
|
||||
|
||||
Image img = LoadImage("resources/raylib_logo.png");
|
||||
Texture2D texture = CreateTexture(img);
|
||||
Texture2D texture = CreateTexture(img, false);
|
||||
UnloadImage(img);
|
||||
//---------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user