Created
March 24, 2015 16:07
-
-
Save memononen/de846a0563323f7a62e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/* | |
(0,0) | |
+.................. | |
: image : | |
: : | |
: +----+ : | |
: |rect| : | |
: +----+ : | |
: : | |
................... | |
*/ | |
float imgx = 0, imgy = 0, imgw = 200, imgh = 200; | |
imgPaint = nvgImagePattern(vg, imgx, imgy, imgw, imgh, 0.0f/*rotation*/, images[i], 1.0f/*alpha*/); | |
nvgBeginPath(vg); | |
nvgRect(vg, 30,30, 30,30); | |
nvgFillPaint(vg, imgPaint); | |
nvgFill(vg); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment