Skip to content
Browse files

Update README.md

  • Loading branch information...
1 parent a3e91a5 commit c6b0e119c60ca603c2174d213a1ed086ab71ad87 @elliotwoods committed
Showing with 5 additions and 5 deletions.
  1. +5 −5 README.md
View
10 README.md
@@ -34,12 +34,12 @@ using namespace ofxAssets; // this is optional
void testApp::draw() {
// quick access to assets
- image(imageName).draw(10,10);
- font(fontName, 30).drawString(..., 10, 10);
- shader(shaderName).begin();
+ image("imageName").draw(10,10);
+ font("fontName", 30).drawString("...", 10, 10);
+ shader("shaderName").begin();
// if you don’t put ‘using namespace ofxAssets’ at the top of your source or header, then use:
- ofxAssets::image(imageName).draw(10,10);
+ ofxAssets::image("imageName").draw(10,10);
}
```
@@ -50,4 +50,4 @@ AssetRegister::refresh()
```
## Notes
-If your asset filename is like `background.png`, then you access this asset without the extension, e.g. `image(background).draw(10,10)`.
+If your asset filename is `background.png`, then you access this asset without the extension, e.g. `image("background").draw(10,10)`.

0 comments on commit c6b0e11

Please sign in to comment.
Something went wrong with that request. Please try again.