mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-27 06:19:34 -06:00
IconDes: UHD issues, GLCtrl developing
git-svn-id: svn://ultimatepp.org/upp/trunk@12249 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
09953c47ae
commit
00a11f2c47
10 changed files with 56 additions and 18 deletions
|
|
@ -419,13 +419,15 @@ void GLDraw::Init(Size sz, uint64 context_)
|
|||
}
|
||||
|
||||
gl_image.Use();
|
||||
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, gl_image.GetUniform("u_projection"));
|
||||
static int uni1 = gl_image.GetUniform("u_projection");
|
||||
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, uni1);
|
||||
|
||||
gl_image_colored.Use();
|
||||
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, gl_image_colored.GetUniform("u_projection"));
|
||||
|
||||
static int uni2 = gl_image_colored.GetUniform("u_projection");
|
||||
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, uni2);
|
||||
gl_rect.Use();
|
||||
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, gl_rect.GetUniform("u_projection"));
|
||||
static int uni3 = gl_rect.GetUniform("u_projection");
|
||||
GLOrtho(0, (float)sz.cx, (float)sz.cy, 0, 0.0f, 1.0f, uni3);
|
||||
}
|
||||
|
||||
void GLDraw::Finish()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue