mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-22 10:39:18 +01:00
update for new libogc
This commit is contained in:
parent
52610a72ee
commit
75bc41f288
@ -60,9 +60,9 @@ bool progressive = false;
|
||||
/* New texture based scaler */
|
||||
typedef struct tagcamera
|
||||
{
|
||||
Vector pos;
|
||||
Vector up;
|
||||
Vector view;
|
||||
guVector pos;
|
||||
guVector up;
|
||||
guVector view;
|
||||
}
|
||||
camera;
|
||||
|
||||
@ -829,7 +829,7 @@ void Menu_DrawImg(f32 xpos, f32 ypos, u16 width, u16 height, u8 data[],
|
||||
height*=.5;
|
||||
guMtxIdentity (m1);
|
||||
guMtxScaleApply(m1,m1,scaleX,scaleY,1.0);
|
||||
Vector axis = (Vector) {0 , 0, 1 };
|
||||
guVector axis = (guVector) {0 , 0, 1 };
|
||||
guMtxRotAxisDeg (m2, &axis, degrees);
|
||||
guMtxConcat(m2,m1,m);
|
||||
|
||||
@ -873,7 +873,7 @@ void Menu_DrawRectangle(f32 x, f32 y, f32 width, f32 height, GXColor color, u8 f
|
||||
int i;
|
||||
f32 x2 = x+width;
|
||||
f32 y2 = y+height;
|
||||
Vector v[] = {{x,y,0.0f}, {x2,y,0.0f}, {x2,y2,0.0f}, {x,y2,0.0f}, {x,y,0.0f}};
|
||||
guVector v[] = {{x,y,0.0f}, {x2,y,0.0f}, {x2,y2,0.0f}, {x,y2,0.0f}, {x,y,0.0f}};
|
||||
|
||||
if(!filled)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user