Typedefs | Functions
hal_gfx_matrix4x4.h File Reference

Header file containing functions prototypes of Graphics library. More...

Go to the source code of this file.

## Typedefs
typedef float | hal_gfx_matrix4x4_t[4][4]
| Global define matrix4x4 variable. More...

## Functions
void | hal_gfx_mat4x4_load_identity (hal_gfx_matrix4x4_t m)
| Load a 4x4 Identity Matrix. More...
void | hal_gfx_mat4x4_mul (hal_gfx_matrix4x4_t m, hal_gfx_matrix4x4_t m_l, hal_gfx_matrix4x4_t m_r)
| Multiply two 4x4 matrices. More...
void | hal_gfx_mat4x4_mul_vec (hal_gfx_matrix4x4_t m, float *x, float *y, float *z, float *w)
| Multiply a 4x1 vector with a 4x4 matrix. More...
void | hal_gfx_mat4x4_translate (hal_gfx_matrix4x4_t m, float tx, float ty, float tz)
| Apply translate transformation. More...
void | hal_gfx_mat4x4_scale (hal_gfx_matrix4x4_t m, float sx, float sy, float sz)
| Apply scale transformation. More...
void | hal_gfx_mat4x4_rotate_X (hal_gfx_matrix4x4_t m, float angle_degrees)
| Apply rotate transformation around X axis. More...
void | hal_gfx_mat4x4_rotate_Y (hal_gfx_matrix4x4_t m, float angle_degrees)
| Apply rotate transformation around Y axis. More...
void | hal_gfx_mat4x4_rotate_Z (hal_gfx_matrix4x4_t m, float angle_degrees)
| Apply rotate transformation around Z axis. More...
void | hal_gfx_mat4x4_load_perspective (hal_gfx_matrix4x4_t m, float fovy_degrees, float aspect, float nearVal, float farVal)
| Set up a perspective projection matrix. More...
void | hal_gfx_mat4x4_load_ortho (hal_gfx_matrix4x4_t m, float left, float right, float bottom, float top, float nearVal, float farVal)
| Set up an orthographic projection matrix. More...
void | hal_gfx_mat4x4_load_ortho_2d (hal_gfx_matrix4x4_t m, float left, float right, float bottom, float top)
| Set up a 2D orthographic projection matrix. More...
int | hal_gfx_mat4x4_obj_to_win_coords (hal_gfx_matrix4x4_t mvp, float x_orig, float y_orig, int width, int height, float nearVal, float farVal, float *x, float *y, float *z, float *w)
| Convenience Function to calculate window coordinates from object coordinates. More...

## Detailed Description

Header file containing functions prototypes of Graphics library.

Author
  BLE Driver Team

Attention

  ##### Copyright (c) 2019 GOODIX

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file hal_gfx_matrix4x4.h.