index-buffer index-count vertex-format texture bump ka ;
: white-image ( -- image )
- { 1 1 } BGR ubyte-components f
- B{ 255 255 255 } image boa ;
+ <image>
+ { 1 1 } >>dim
+ BGR >>component-order
+ ubyte-components >>component-type
+ B{ 255 255 255 } >>bitmap ;
: up-image ( -- image )
- { 1 1 } BGR ubyte-components f
- B{ 0 0 0 } image boa ;
+ <image>
+ { 1 1 } >>dim
+ BGR >>component-order
+ ubyte-components >>component-type
+ B{ 0 0 0 } >>bitmap ;
: make-texture ( pathname alt -- texture )
swap [ nip load-image ] [ ] if*
: clear-screen ( -- )
0 0 0 0 glClearColor
1 glClearDepth
- HEX: ffffffff glClearStencil
+ 0xffffffff glClearStencil
flags{ GL_COLOR_BUFFER_BIT
GL_DEPTH_BUFFER_BIT
GL_STENCIL_BUFFER_BIT } glClear ;