úÎ!‘íŒm7      !"#$%&'()*+,-./0123456 Safe2ûgloss-rendering›An abstract color value. We keep the type abstract so we can be sure that the components are in the required range. To make a custom color use .7gloss-renderingBHolds the color components. All components lie in the range [0..1.gloss-renderingEMake a custom color. All components are clamped to the range [0..1].gloss-renderingFMake a custom color. All components are clamped to the range [0..255].gloss-renderingMake a custom color.Using this function over å avoids clamping the components, which saves time. However, if the components are out of range then this will result in integer overflow at rendering time, and the actual picture you get will be implementation dependent.5You'll only need to use this function when using the  gloss-raster’ package that builds a new color for every pixel. If you're just working with the Picture data type then it there is no need for raw colors.gloss-rendering3Make a custom color, taking pre-clamped components.gloss-rendering$Take the RGBA components of a color.gloss-rendering8Clamp components of a raw color into the required range.gloss-renderingRed component.gloss-renderingGreen component.gloss-renderingBlue component.gloss-renderingAlpha component.7Safe"#2$ gloss-renderingAPixel formats describe the order of the color channels in memory. gloss-rendering%Order of rows in an image are either: 9 - the top row, followed by the next-lower row and so on. < - the bottom row followed by the next-higher row and so on. gloss-rendering5Description of how the bitmap is layed out in memory.@Prior version of Gloss assumed `BitmapFormat BottomToTop PxAGBR`gloss-rendering!Abstract 32-bit RGBA bitmap data.gloss-renderingwidth, height in pixelsgloss-rendering,Represents a rectangular section in a bitmapgloss-rendering$x- and y-pos in the bitmap in pixelsgloss-rendering#width/height of the area in pixelsi8gloss-rendering6Generates the point path to display the bitmap centred9gloss-renderingAFrees the allocated memory given to OpenGL to avoid a memory leak :;<=>89None2HÖgloss-rendering A 2D picturegloss-rendering$A blank picture, with nothing in it.gloss-rendering+A convex polygon filled with a solid color.gloss-renderingA line along an arbitrary path.gloss-renderingA circle with the given radius.gloss-renderingbA circle with the given radius and thickness. If the thickness is 0 then this is equivalent to .gloss-rendering]A circular arc drawn counter-clockwise between two angles (in degrees) at the given radius.gloss-rendering£A circular arc drawn counter-clockwise between two angles (in degrees), with the given radius and thickness. If the thickness is 0 then this is equivalent to .gloss-rendering%Some text to draw with a vector font. gloss-renderingA bitmap image.!gloss-rendering’A subsection of a bitmap image where the first argument selects a sub section in the bitmap, and second argument determines the bitmap data."gloss-rendering A picture drawn with this color.#gloss-rendering6A picture translated by the given x and y coordinates.$gloss-rendering<A picture rotated clockwise by the given angle (in degrees).%gloss-rendering.A picture scaled by the given x and y factors.&gloss-rendering'A picture consisting of several others.'gloss-renderingA path through the x-y plane.(gloss-rendering2A vector can be treated as a point, and vis-versa.)gloss-renderingA point on the x-y plane.*gloss-rendering O(1). Use a ?= of RGBA data as a bitmap with the given width and height.¦The boolean flag controls whether Gloss should cache the data between frames for speed. If you are programatically generating the image for each frame then use @0. If you have loaded it from a file then use A.,gloss-renderingO(size). Copy a B? of RGBA data into a bitmap with the given width and height.¦The boolean flag controls whether Gloss should cache the data between frames for speed. If you are programatically generating the image for each frame then use @0. If you have loaded it from a file then use A..gloss-renderingO(size). Copy a C file into a bitmap./gloss-renderingO(size). Copy a C file into a bitmap.0gloss-rendering;Load an uncompressed 24 or 32bit RGBA BMP file as a bitmap.Dgloss-renderingaConstruct a rectangle of the given width and height, with the lower left corner at the origin.+  "!#$%&'()*+,-./0DNoneJÔEgloss-rendering5Convert one of our Colors to OpenGL's representation.ENoneUÊFgloss-rendering”The OpenGL library doesn't seem to provide a nice way convert a Float to a GLfloat, even though they're the same thing under the covers.RUsing realToFrac is too slow, as it doesn't get fused in at least GHC 6.12.1Ggloss-rendering!Used for similar reasons to above1gloss-renderinggSet up the OpenGL rendering context for orthographic projection and run an action to draw the model.2gloss-rendering_Clear the OpenGL buffer with the given background color and run an action to draw the model.1gloss-renderingWidth and height of window.gloss-renderingAction to perform.2gloss-renderingBackground colorgloss-renderingAction to performFG12NoneFaØ Hgloss-renderingÿDecide how many line segments to use to render the circle. The number of segments we should use to get a nice picture depends on the size of the circle on the screen, not its intrinsic radius. If the viewport has been zoomed-in then we need to use more segments.Igloss-rendering(Render a circle with the given thicknessJgloss-renderingRender a circle as a line.Kgloss-rendering:Render a circle with a given thickness as a triangle stripLgloss-rendering'Render an arc with the given thickness.Mgloss-renderingRender an arc as a line.Ngloss-rendering8Render an arc with a given thickness as a triangle stripOgloss-renderingConvert degrees to radiansPgloss-rendering3Normalise an angle to be between 0 and 2*pi radiansILNoneqÄQgloss-rendering$A texture that we've sent to OpenGL.Rgloss-renderingStable name derived from the  that the user gives us.Sgloss-renderingWidth of the image, in pixels.Tgloss-renderingHeight of the image, in pixels.Ugloss-rendering Pointer to the Raw texture data.Vgloss-renderingThe OpenGL texture object.Wgloss-renderingFWhether we want to leave this in OpenGL texture memory between frames.3gloss-rendering^Abstract Gloss render state which holds references to textures loaded into the GPU context.Xgloss-renderingWhether to use colorYgloss-rendering$Whether to force wireframe mode onlyZgloss-renderingWhether to use alpha blending[gloss-renderingWhether to use line smoothing\gloss-rendering,Cache of Textures that we've sent to OpenGL.4gloss-rendering¨A mutable render state holds references to the textures currently loaded into the OpenGL context. To ensure that textures are cached in GPU memory, pass the same 3 each time you call displayPicture or  renderPicture.Q]RSTUVW3^XYZ[\4 None2¥5gloss-rendering1Render a picture into the current OpenGL context..Assumes that the OpenGL matrix mode is set to  Modelview_gloss-rendering^Load a texture into the OpenGL context, or retrieve the existing handle from our own cache.`gloss-renderingOInstall a texture into the OpenGL context, returning the new texture handle.agloss-rendering"If this texture does not have its cacheMe@ flag set then delete it from OpenGL and free the GPU memory.bgloss-renderingTurn alpha blending on or offcgloss-renderingTurn line smoothing on or off5gloss-renderingCurrent rendering state.gloss-renderingNView port scale, which controls the level of detail. Use 1.0 to start with.gloss-renderingPicture to render._gloss-renderingExisting texture cache.gloss-rendering Texture data.gloss-rendering&Force cache for newly loaded textures.5Noneб6gloss-renderingUSet up the OpenGL context, clear the buffer, and render the given picture into it.This is the same as 5 composed with 1 and 2J. If you want to manage your own OpenGL context then you can just call 5.ªUsing this function assumes that you've already opened a window and set that to the active context. If you don't want to do your own window management then use the gloss package instead.6gloss-renderingWindow width and height.gloss-renderingColor to clear the window with.gloss-renderingCurrent rendering state.gloss-renderingNView port scale, which controls the level of detail. Use 1.0 to start with.gloss-renderingPicture to draw.7  "!#$%&'()*+,-./01234567 "!#$%&)('  *+,-./0651243d     !"#$%&'() *+,-./0123456789:; <=>?@ABCDEFGHIJHIKLMNOPQRSTUVWXYZ[\]^_`abcdefghij_: k l m n op/gloss-rendering-1.13.1.1-6Q3xObaYFqG4sLNmtqgvv2Graphics.Gloss.Rendering#Graphics.Gloss.Internals.Data.Color)Graphics.Gloss.Internals.Rendering.Bitmap%Graphics.Gloss.Internals.Data.Picture(Graphics.Gloss.Internals.Rendering.Color)Graphics.Gloss.Internals.Rendering.Common)Graphics.Gloss.Internals.Rendering.Circle(Graphics.Gloss.Internals.Rendering.State*Graphics.Gloss.Internals.Rendering.PictureColor makeColor makeColorI makeRawColor makeRawColorI rgbaOfColor clampColor PixelFormatPxRGBAPxABGRRowOrder TopToBottom BottomToTop BitmapFormatrowOrder pixelFormat BitmapData bitmapSize RectanglerectPosrectSizePictureBlankPolygonLineCircle ThickCircleArcThickArcTextBitmap BitmapSection TranslateRotateScalePicturesPathVectorPointbitmapOfForeignPtrbitmapDataOfForeignPtrbitmapOfByteStringbitmapDataOfByteString bitmapOfBMPbitmapDataOfBMPloadBMP withModelviewwithClearBufferState initState renderPicturedisplayPictureRGBA bitmapPathfreeBitmapDatabitmapDataLength bitmapFormat bitmapCacheMe bitmapPointerbaseGHC.ForeignPtr ForeignPtrghc-prim GHC.TypesFalseTruebytestring-0.10.8.2Data.ByteString.Internal ByteString"bmp-1.2.6.3-5I0Urr4KLkm5qE2wNumCpoCodec.BMP.BaseBMP rectAtOriginglColor4OfColorgfgsizei circleSteps renderCirclerenderCircleLinerenderCircleStrip renderArc renderArcLinerenderArcStripdegToRadnormalizeAngleTexturetexNametexWidth texHeighttexData texObject texCacheMe stateColorstateWireframestateBlendAlphastateLineSmooth stateTextures loadTextureinstallTexture freeTexture setBlendAlpha setLineSmooth