函数改名

This commit is contained in:
hyzboy 2019-06-13 14:07:39 +08:00
parent 44b0cc7cae
commit d13bd948aa
3 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@ namespace hgl
Matrix4f two_dim; //2D矩阵 Matrix4f two_dim; //2D矩阵
Matrix4f projection; Matrix4f projection;
// Matrix4f inverse_projection;
Matrix4f modelview; Matrix4f modelview;
Matrix4f mvp; Matrix4f mvp;
Matrix3f normal; Matrix3f normal;

View File

@ -201,7 +201,7 @@ namespace hgl
const int y=HIWORD(lParam); \ const int y=HIWORD(lParam); \
\ \
win->OnMouseMove(x,y); \ 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); WMEF_MOUSE(Left,Down);

View File

@ -30,6 +30,8 @@ namespace hgl
else else
matrix.projection=ortho(width,height,znear,zfar); //这个算的不对 matrix.projection=ortho(width,height,znear,zfar); //这个算的不对
//matrix.inverse_projection=matrix.projection.Inverted();
matrix.modelview=hgl::graph::LookAt(eye,center,up_vector); matrix.modelview=hgl::graph::LookAt(eye,center,up_vector);
matrix.mvp=matrix.projection*matrix.modelview; matrix.mvp=matrix.projection*matrix.modelview;