ui.gadgets.cartesian: Use the new slate
parent
1906efc1bd
commit
22f2a0d856
|
@ -22,9 +22,7 @@ TUPLE: cartesian < slate x-min x-max y-min y-max z-min z-max perspective ;
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
M: cartesian draw-gadget* ( cartesian -- )
|
M: cartesian establish-coordinate-system ( cartesian -- cartesian )
|
||||||
GL_PROJECTION glMatrixMode
|
|
||||||
glLoadIdentity
|
|
||||||
dup
|
dup
|
||||||
{
|
{
|
||||||
[ x-min>> ] [ x-max>> ]
|
[ x-min>> ] [ x-max>> ]
|
||||||
|
@ -32,10 +30,7 @@ M: cartesian draw-gadget* ( cartesian -- )
|
||||||
[ z-min>> ] [ z-max>> ]
|
[ z-min>> ] [ z-max>> ]
|
||||||
}
|
}
|
||||||
cleave
|
cleave
|
||||||
glOrtho
|
glOrtho ;
|
||||||
GL_MODELVIEW glMatrixMode
|
|
||||||
glLoadIdentity
|
|
||||||
call-next-method ;
|
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue