[DEV] something has been done

This commit is contained in:
Edouard DUPIN 2013-03-15 23:26:16 +01:00
parent 9a84c63701
commit 9dccd96fde
3 changed files with 11 additions and 11 deletions

2
external/etk vendored

@ -1 +1 @@
Subproject commit 03e91578914d2c5c1d6ec60fe28411bf037f6fa9 Subproject commit 3d4b4123b758fa2ae9421041503e86b56f599826

View File

@ -37,7 +37,7 @@ void ewol::openGL::UnInit(void)
l_matrixCamera.Identity(); l_matrixCamera.Identity();
} }
void ewol::openGL::SetBasicMatrix(mat4& newOne) void ewol::openGL::SetBasicMatrix(const mat4& newOne)
{ {
if (l_matrixList.Size()!=1) { if (l_matrixList.Size()!=1) {
EWOL_ERROR("matrix is not corect size in the stack : " << l_matrixList.Size()); EWOL_ERROR("matrix is not corect size in the stack : " << l_matrixList.Size());
@ -46,7 +46,7 @@ void ewol::openGL::SetBasicMatrix(mat4& newOne)
l_matrixList.PushBack(newOne); l_matrixList.PushBack(newOne);
} }
void ewol::openGL::SetMatrix(mat4& newOne) void ewol::openGL::SetMatrix(const mat4& newOne)
{ {
if (l_matrixList.Size()==0) { if (l_matrixList.Size()==0) {
EWOL_ERROR("set matrix list is not corect size in the stack : " << l_matrixList.Size()); EWOL_ERROR("set matrix list is not corect size in the stack : " << l_matrixList.Size());
@ -82,7 +82,7 @@ void ewol::openGL::Pop(void)
l_matrixCamera.Identity(); l_matrixCamera.Identity();
} }
mat4& ewol::openGL::GetMatrix(void) const mat4& ewol::openGL::GetMatrix(void)
{ {
if (l_matrixList.Size()==0) { if (l_matrixList.Size()==0) {
EWOL_ERROR("set matrix list is not corect size in the stack : " << l_matrixList.Size()); EWOL_ERROR("set matrix list is not corect size in the stack : " << l_matrixList.Size());
@ -92,12 +92,12 @@ mat4& ewol::openGL::GetMatrix(void)
return l_matrixList[l_matrixList.Size()-1]; return l_matrixList[l_matrixList.Size()-1];
} }
mat4& ewol::openGL::GetCameraMatrix(void) const mat4& ewol::openGL::GetCameraMatrix(void)
{ {
return l_matrixCamera; return l_matrixCamera;
} }
void ewol::openGL::SetCameraMatrix(mat4& newOne) void ewol::openGL::SetCameraMatrix(const mat4& newOne)
{ {
l_matrixCamera = newOne; l_matrixCamera = newOne;
} }

View File

@ -64,13 +64,13 @@ namespace ewol {
* @brief When you will done an opengl rendering, you might call this reset matrix first. It remove all the stach of the matrix pushed. * @brief When you will done an opengl rendering, you might call this reset matrix first. It remove all the stach of the matrix pushed.
* @param[in] newOne the default matrix that might be set for the graphic card for renderer. if too more pop will be done, this is the last that mmight survived * @param[in] newOne the default matrix that might be set for the graphic card for renderer. if too more pop will be done, this is the last that mmight survived
*/ */
void SetBasicMatrix(mat4& newOne); void SetBasicMatrix(const mat4& newOne);
/** /**
* @brief this funtion configure the current use matrix for the renderer (call @ref Push before, and @ref Pop when no more needed). * @brief this funtion configure the current use matrix for the renderer (call @ref Push before, and @ref Pop when no more needed).
* @param[in] newOne The new current matrix use for the render. * @param[in] newOne The new current matrix use for the render.
* @note We did not use opengl standard system, due to the fact that is not supported in opengl ES-2 * @note We did not use opengl standard system, due to the fact that is not supported in opengl ES-2
*/ */
void SetMatrix(mat4& newOne); void SetMatrix(const mat4& newOne);
/** /**
* @brief Store current matrix in the matrix stack. * @brief Store current matrix in the matrix stack.
*/ */
@ -83,17 +83,17 @@ namespace ewol {
* @brief Get a reference on the current matrix destinate to opengl renderer. * @brief Get a reference on the current matrix destinate to opengl renderer.
* @return The requested matrix. * @return The requested matrix.
*/ */
mat4& GetMatrix(void); const mat4& GetMatrix(void);
/** /**
* @brief Get a reference on the current matrix camera destinate to opengl renderer. * @brief Get a reference on the current matrix camera destinate to opengl renderer.
* @return The requested matrix. * @return The requested matrix.
*/ */
mat4& GetCameraMatrix(void); const mat4& GetCameraMatrix(void);
/** /**
* @brief Set a reference on the current camera to opengl renderer. * @brief Set a reference on the current camera to opengl renderer.
* @param[in] newOne The requested matrix. * @param[in] newOne The requested matrix.
*/ */
void SetCameraMatrix(mat4& newOne); void SetCameraMatrix(const mat4& newOne);
/** /**
* @brief * @brief
*/ */