函数改名
This commit is contained in:
parent
44b0cc7cae
commit
d13bd948aa
@ -16,6 +16,7 @@ namespace hgl
|
||||
Matrix4f two_dim; //2D矩阵
|
||||
|
||||
Matrix4f projection;
|
||||
// Matrix4f inverse_projection;
|
||||
Matrix4f modelview;
|
||||
Matrix4f mvp;
|
||||
Matrix3f normal;
|
||||
|
@ -201,7 +201,7 @@ namespace hgl
|
||||
const int y=HIWORD(lParam); \
|
||||
\
|
||||
win->OnMouseMove(x,y); \
|
||||
win->OnMouse##action(x,y,mb##button|GetKeyFlags(wParam)); \
|
||||
win->OnMouse##action(x,y,mb##button|GetMouseKeyFlags(wParam)); \
|
||||
}
|
||||
|
||||
WMEF_MOUSE(Left,Down);
|
||||
|
@ -30,6 +30,8 @@ namespace hgl
|
||||
else
|
||||
matrix.projection=ortho(width,height,znear,zfar); //这个算的不对
|
||||
|
||||
//matrix.inverse_projection=matrix.projection.Inverted();
|
||||
|
||||
matrix.modelview=hgl::graph::LookAt(eye,center,up_vector);
|
||||
|
||||
matrix.mvp=matrix.projection*matrix.modelview;
|
||||
|
Loading…
x
Reference in New Issue
Block a user