Fixed incorrect indentation in SDL_Renderer example
parent
8af4286f21
commit
5505546d5c
@ -574,9 +574,8 @@ bool LoadTextureFromFile(const char* filename, SDL_Texture** texture_ptr, int& w
|
|||||||
We can then load our texture after initialising SDL:
|
We can then load our texture after initialising SDL:
|
||||||
```cpp
|
```cpp
|
||||||
SDL_Texture* my_texture;
|
SDL_Texture* my_texture;
|
||||||
int my_image_width, my_image_height;
|
int my_image_width, my_image_height;
|
||||||
|
bool ret = LoadTextureFromFile("MyImage01.jpg", &my_texture, my_image_width, my_image_height, renderer);
|
||||||
bool ret = LoadTextureFromFile("MyImage01.jpg", &my_texture, my_image_width, my_image_height, renderer);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
And finally, use the image with Dear ImGui:
|
And finally, use the image with Dear ImGui:
|
||||||
|
Loading…
Reference in New Issue
Block a user