mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-23 16:41:12 +01:00
update for new libogc
This commit is contained in:
parent
c630499b98
commit
398cafd849
@ -77,9 +77,9 @@ bool progressive = 0;
|
|||||||
/* New texture based scaler */
|
/* New texture based scaler */
|
||||||
typedef struct tagcamera
|
typedef struct tagcamera
|
||||||
{
|
{
|
||||||
Vector pos;
|
guVector pos;
|
||||||
Vector up;
|
guVector up;
|
||||||
Vector view;
|
guVector view;
|
||||||
}
|
}
|
||||||
camera;
|
camera;
|
||||||
|
|
||||||
@ -1029,7 +1029,7 @@ void Menu_DrawImg(f32 xpos, f32 ypos, u16 width, u16 height, u8 data[],
|
|||||||
height*=.5;
|
height*=.5;
|
||||||
guMtxIdentity (m1);
|
guMtxIdentity (m1);
|
||||||
guMtxScaleApply(m1,m1,scaleX,scaleY,1.0);
|
guMtxScaleApply(m1,m1,scaleX,scaleY,1.0);
|
||||||
Vector axis = (Vector) {0 , 0, 1 };
|
guVector axis = (guVector) {0 , 0, 1 };
|
||||||
guMtxRotAxisDeg (m2, &axis, degrees);
|
guMtxRotAxisDeg (m2, &axis, degrees);
|
||||||
guMtxConcat(m2,m1,m);
|
guMtxConcat(m2,m1,m);
|
||||||
|
|
||||||
@ -1073,7 +1073,7 @@ void Menu_DrawRectangle(f32 x, f32 y, f32 width, f32 height, GXColor color, u8 f
|
|||||||
int i;
|
int i;
|
||||||
f32 x2 = x+width;
|
f32 x2 = x+width;
|
||||||
f32 y2 = y+height;
|
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)
|
if(!filled)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user