mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
OpenGL refactoring.
This commit is contained in:
parent
d4b041ad91
commit
04c35b28e6
12 changed files with 81 additions and 174 deletions
|
|
@ -244,7 +244,7 @@ namespace
|
|||
glVertexPointer (2, GL_FLOAT, 0, vertices);
|
||||
glTexCoordPointer (2, GL_FLOAT, 0, textureCoords);
|
||||
|
||||
const Rectangle<int> targetArea (clip.transformed (transform.inverted()));
|
||||
const Rectangle<int> targetArea (clip.toFloat().transformed (transform.inverted()).getSmallestIntegerContainer());
|
||||
int x = targetArea.getX() - negativeAwareModulo (targetArea.getX(), textureWidth);
|
||||
int y = targetArea.getY() - negativeAwareModulo (targetArea.getY(), textureHeight);
|
||||
const int right = targetArea.getRight();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue