-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Draw call merge bugfix, added cf_draw_prefetch
- Loading branch information
Showing
6 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[//]: # (This file is automatically generated by Cute Framework's docs parser.) | ||
[//]: # (Do not edit this file by hand!) | ||
[//]: # (See: https://github.com/RandyGaul/cute_framework/blob/master/samples/docs_parser.cpp) | ||
[](../header.md ':include') | ||
|
||
# cf_draw_prefetch | ||
|
||
Category: [draw](/api_reference?id=draw) | ||
GitHub: [cute_draw.h](https://github.com/RandyGaul/cute_framework/blob/master/include/cute_draw.h) | ||
--- | ||
|
||
Prefetches a sprite. | ||
|
||
```cpp | ||
void cf_draw_prefetch(const CF_Sprite* sprite); | ||
``` | ||
Parameters | Description | ||
--- | --- | ||
sprite | The sprite. | ||
## Remarks | ||
This function ensures the sprite is fully loaded into memory without actually rendering anything. | ||
This is a good way to avoid disk io at inconvenient times. | ||
## Related Pages | ||
[cf_draw_sprite](/draw/cf_draw_sprite.md) | ||
[cf_draw_quad](/draw/cf_draw_quad.md) | ||
draw_look_at | ||
cf_draw_to | ||
[cf_app_draw_onto_screen](/app/cf_app_draw_onto_screen.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
/* | ||
Cute Framework | ||
Copyright (C) 2024 Randy Gaul https://randygaul.github.io/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters