ú΀Ö{­.      !"#$%&'()*+,- Safe09;BAPixel formats describe the order of the color channels in memory.%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.5Description of how the bitmap is layed out in memory.@Prior version of Gloss assumed `BitmapFormat BottomToTop PxAGBR` !Abstract 32-bit RGBA bitmap data..6Generates the point path to display the bitmap centred/AFrees the allocated memory given to OpenGL to avoid a memory leak 0123./4 0123./ 0123./4Safe09;B ›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  .5BHolds the color components. All components lie in the range [0..1. EMake a custom color. All components are clamped to the range [0..1]. FMake a custom color. All components are clamped to the range [0..255].Make 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.3Make a custom color, taking pre-clamped components.$Take the RGBA components of a color.8Clamp components of a raw color into the required range. 5 Red component.Green component.Blue component.Alpha component. 6 5  5 6None09;B A 2D picture$A blank picture, with nothing in it.+A convex polygon filled with a solid color.A line along an arbitrary path.A circle with the given radius.bA circle with the given thickness and radius. If the thickness is 0 then this is equivalent to .^A circular arc drawn counter-clockwise between two angles (in degrees) at the given radius.¥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 .%Some text to draw with a vector font.HA bitmap image with a width, height and some 32-bit RGBA bitmap data.¨The boolean flag controls whether Gloss should cache the data in GPU memory between frames. If you are programatically generating the image for each frame then use False/. If you have loaded it from a file then use True . Setting FalseO for static images will make rendering slower than it needs to be. Setting TrueB for dynamically generated images will cause a GPU memory leak. A picture drawn with this color.6A picture translated by the given x and y coordinates.<A picture rotated clockwise by the given angle (in degrees)..A picture scaled by the given x and y factors. 'A picture consisting of several others.!A path through the x-y plane."2A vector can be treated as a point, and vis-versa.#A point on the x-y plane.$ O(1). Use a 7= 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 80. If you have loaded it from a file then use 9.%O(size). Copy a :? 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 80. If you have loaded it from a file then use 9.&O(size). Copy a ; file into a bitmap.';Load an uncompressed 24 or 32bit RGBA BMP file as a bitmap.<ÿPretend a point is a number. Vectors aren't real numbers according to Haskell, because they don't support the multiply and divide field operators. We can pretend they are though, and use the (+) and (-) operators as component-wise addition and subtraction. !"#$%&'=<!  !"#$%&'  !"#$%&'=<None09;B>$A texture that we've sent to OpenGL.?Stable name derived from the   that the user gives us.@Width of the image, in pixels.AHeight of the image, in pixels.B Pointer to the Raw texture data.CThe OpenGL texture object.DFWhether we want to leave this in OpenGL texture memory between frames.(^Abstract Gloss render state which holds references to textures loaded into the GPU context.EWhether to use colorF$Whether to force wireframe mode onlyGWhether to use alpha blendingHWhether to use line smoothingI,Cache of Textures that we've sent to OpenGL.)¨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 ( each time you call displayPicture or  renderPicture.>J?@ABCD(KEFGHI)>J?@ABCD(KEFGHI)>J?@ABCD(KEFGHI)None09;BL5Convert one of our Colors to OpenGL's representation.LLLNone09;BM–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.1N!Used for similar reasons to above*gSet up the OpenGL rendering context for orthographic projection and run an action to draw the model.+`Clear the OpenGL buffer with the given background color and run an action to draw the model.MN*Width and height of window.Action to perform.+Background colorAction to performMN*+MN*+None09;B Oÿ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.P(Render a circle with the given thicknessQRender a circle as a line.R:Render a circle with a given thickness as a triangle stripS'Render an arc with the given thickness.TRender an arc as a line.U8Render an arc with a given thickness as a triangle stripVConvert degrees to radiansW3Normalise an angle to be between 0 and 2*pi radians OPQRSTUXYZ[VWPS OPQRSTUXYZ[VW None09;B,1Render a picture into the current OpenGL context..Assumes that the OpenGL matrix mode is set to  Modelview\ƒLoad a texture. If we've seen it before then use the pre-installed one from the texture cache, otherwise load it into OpenGL.]Install a texture into OpenGL.^"If this texture does not have its cacheMeA flag set then delete it from OpenGL and free the GPU memory._Turn alpha blending on or off`Turn line smoothing on or off ,Current rendering state.NView port scale, which controls the level of detail. Use 1.0 to start with.Picture to render.abc\]^_`d, ,abc\]^_`dNone09;B-VSet up the OpenGL context, clear the buffer, and render the given picture into it. This is the same as , composed with * and +J. If you want to manage your own OpenGL context then you can just call ,. ª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.-Window width and height.Color to clear the window with.Current rendering state.NView port scale, which controls the level of detail. Use 1.0 to start with.Picture to draw..  !"#$%&'()*+,-. #"!   $%&'-,*+)(-e     !"#$%&'()*+,-./0123 456789:;<=>?@ABCABDEFGHIJKLMNOPQRSTUVWXM0YZ[\]^_`abcdefgh i j k l m n o p qr/gloss-rendering-1.10.3.3-6W2XekE4iHx2JkKzJEcR9CGraphics.Gloss.Rendering)Graphics.Gloss.Internals.Rendering.Bitmap#Graphics.Gloss.Internals.Data.Color%Graphics.Gloss.Internals.Data.Picture(Graphics.Gloss.Internals.Rendering.State(Graphics.Gloss.Internals.Rendering.Color)Graphics.Gloss.Internals.Rendering.Common)Graphics.Gloss.Internals.Rendering.Circle*Graphics.Gloss.Internals.Rendering.Picture PixelFormatPxRGBAPxABGRRowOrder TopToBottom BottomToTop BitmapFormatrowOrder pixelFormat BitmapDataColor makeColor makeColorI makeRawColor makeRawColorI rgbaOfColor clampColorPictureBlankPolygonLineCircle ThickCircleArcThickArcTextBitmap TranslateRotateScalePicturesPathVectorPointbitmapOfForeignPtrbitmapOfByteString bitmapOfBMPloadBMPState initState withModelviewwithClearBuffer renderPicturedisplayPicture bitmapPathfreeBitmapDatabitmapDataLength bitmapFormat bitmapPointer$fShowBitmapDataRGBA $fNumColorbaseGHC.ForeignPtr ForeignPtrghc-prim GHC.TypesFalseTruebytestring-0.10.8.1Data.ByteString.Internal ByteString!bmp-1.2.6.3-KF4xHl5RTVIp6NQI8dI2ICodec.BMP.BaseBMP$fNum(,)$fMonoidPictureTexturetexNametexWidth texHeighttexData texObject texCacheMe stateColorstateWireframestateBlendAlphastateLineSmooth stateTexturesglColor4OfColorgfgsizei circleSteps renderCirclerenderCircleLinerenderCircleStrip renderArc renderArcLinerenderArcStripdegToRadnormalizeAnglerenderCircleLine_steprenderCircleStrip_stepaddPointaddPointOnCircle loadTextureinstallTexture freeTexture setBlendAlpha setLineSmooth drawPicture checkErrors handleError vertexPFs