X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=blobdiff_plain;f=basis%2Fopengl%2Ftextures%2Ftextures.factor;h=dacea0888a277fb484d352632e9a85fe1670b8e4;hp=2341706f4c21bafbc552b0cc349cf0f5e9bcd323;hb=70a99e1cdb02548627e928196e686b06a078467d;hpb=c9ad0856d5de6321c672936e6fc507a155ee8d98 diff --git a/basis/opengl/textures/textures.factor b/basis/opengl/textures/textures.factor index 2341706f4c..dacea0888a 100644 --- a/basis/opengl/textures/textures.factor +++ b/basis/opengl/textures/textures.factor @@ -1,11 +1,11 @@ ! Copyright (C) 2009, 2010 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. -USING: accessors assocs cache colors.constants destructors -kernel opengl opengl.gl opengl.capabilities combinators images -images.tesselation grouping sequences math math.vectors -generalizations fry arrays namespaces system -locals literals specialized-arrays ; -FROM: alien.c-types => float *float *int ; +USING: accessors alien.data assocs cache colors.constants +destructors kernel opengl opengl.gl opengl.capabilities +combinators images images.tesselation grouping sequences math +math.vectors generalizations fry arrays namespaces system locals +literals specialized-arrays ; +FROM: alien.c-types => int float ; SPECIALIZED-ARRAY: float IN: opengl.textures @@ -406,7 +406,7 @@ PRIVATE> [ [ max-texture-size tesselate ] dip ] if ; : get-texture-float ( target level enum -- value ) - 0 [ glGetTexLevelParameterfv ] keep *float ; inline -: get-texture-int ( target level enum -- value ) - 0 [ glGetTexLevelParameteriv ] keep *int ; inline + { float } [ glGetTexLevelParameterfv ] [ ] with-out-parameters ; inline +: get-texture-int ( target level enum -- value ) + { int } [ glGetTexLevelParameteriv ] [ ] with-out-parameters ; inline