Code used to test some features (and resources)
This commit is contained in:
parent
1c8874e6d5
commit
f76a00adc1
25 changed files with 5160 additions and 12 deletions
|
|
@ -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);
|
||||
//---------------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue