mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +01:00
update for new libogc
This commit is contained in:
parent
86f3bdc9d6
commit
4546f65b21
@ -87,9 +87,9 @@ u32 diff_usec(long long start,long long end);
|
|||||||
/* 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;
|
||||||
|
|
||||||
@ -926,7 +926,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);
|
||||||
|
|
||||||
@ -970,7 +970,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…
Reference in New Issue
Block a user