change texture2d to texture
This commit is contained in:
parent
97c02b2425
commit
1c829e7b81
1 changed files with 73 additions and 73 deletions
|
|
@ -29,7 +29,7 @@ int main(void)
|
|||
InitWindow(screenWidth, screenHeight, "raylib [texture] example - sprite anim");
|
||||
|
||||
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
|
||||
Texture2D scarfy = LoadTexture("resources/scarfy.png"); // Texture loading
|
||||
Texture scarfy = LoadTexture("resources/scarfy.png"); // Texture loading
|
||||
|
||||
Vector2 position = { 350.0f, 280.0f };
|
||||
Rectangle frameRec = { 0.0f, 0.0f, (float)scarfy.width/6, (float)scarfy.height };
|
||||
|
|
|
|||
Loading…
Reference in a new issue