コード例 #1
0
ファイル: ctr_rend_matrix.c プロジェクト: elhobbs/heretic3ds
void glScalef(GLfloat x, GLfloat y, GLfloat z) {
	int mode = ctr_state.matrix_current;
	int depth = ctr_state.matrix_depth[mode];
	matrix_4x4 *mat = &ctr_state.matrix[mode][depth];
	if (!mat) {
		return;
	}
	m4x4_scale(mat, x, y, z);
}
コード例 #2
0
ファイル: matrixstack.c プロジェクト: ezhangle/motor
void matrixstack_scale(float x, float y) {
  m4x4_scale(matrixstack_head(), x, y, 0.0f);
}