Functions and Macros |
---|
HIWORD(Value)
|
LOWORD(Value)
|
NEAR.l(f1.f, f2.f)
|
OGLBlendingStart(Scr.l = #GL_SRC_ALPHA, Dest.l = #GL_ONE_MINUS_SRC_ALPHA) - Starts blending of the alpha channel.
|
OGLBlendingStop() - Deactivates blending, enables layer support again
|
OGLBlurAccum(Value.f) - SLOW!
|
OGLBlurStart(Value.f = 1.0) - SLOW!
|
OGLBlurStop(Value.f = 1.0) - SLOW!
|
OGLBufferImageCreate.l(Width.l, Height.l) - Reserves the memory for the image
|
OGLBufferImageFree(*bImg._OGLBUFFERIMAGE) - Frees the memory of a buffer image
|
OGLBufferImagePlot.l(*bImg._OGLBUFFERIMAGE, x.l, y.l, r.l = 255, g.l = 255, b.l = 255, a.l = 255) - Sets the color of a point in the buffer image
|
OGLBufferImageToImage.l(*bImg._OGLBUFFERIMAGE) - Converts a buffer image to an ogl image for image functions
|
OGLCoordinatesChange(Width.f, Height.f) - Changes the x and y range of the coordinates shown in the screen
|
OGLCoordinatesToOGL(x.d, y.d, *ogl.OGLPoint) - Translates x and y form normal windows coordinates to ogl ones (returned in *ogl)
|
OGLCoordinatesToWindow(x.d, y.d, *win.OGLPoint) - Translates x and y ogl coordinates to normal windows ones (returned in *win)
|
OGLFontDraw(x.f, y.f, Text.s, r.f, g.f, b.f, a.f = 1.0, z.f = 0.0) - Draws text with the current Font
|
OGLFontLoad(Name.s, Height.l = 10, Bold.l = 0, Italic.l = 0, Underline.l = 0, StrikeOut.l = 0) - Loads a font for OGLFontDraw, needs time, so don't use it in a loop! (multiple fonts loaded at the same time not possible for now.
|
OGLImageCatchDIMG.l(*mem, ar.l, ag.l, ab.l) - Catch a DIMG directly from Memory (IncludeBinary)
|
OGLImageCollision(*Image1.OGLIMAGE, x1.l, y1.l, *Image2.OGLIMAGE, x2.l, y2.l, z1.l = 0, z2.l = 0) - Box collision with layer and zoom support.
|
OGLImageCreateAlpha.l(Type.l, Size.l, param.f = 0) - creates an image with only alpha channel filled up with formulas
|
OGLImageDataCreate.l(*Image.OGLIMAGE, Channels.l, Format.l) - Creates an ogl image.
|
OGLImageDraw(*Image.OGLIMAGE, x.f, y.f, z.f = 0.0) - Draws the Image
|
OGLImageFree(*Image.OGLIMAGE) - Frees the memory used by *Image (also *Image\mem if not #NULL)
|
OGLImageFromWindow.l(x.l, y.l, Width.l, Height.l) - creates an image out of a part of the screen.
|
OGLImageGetAlpha.f(*Image.OGLIMAGE)
|
OGLImageGetAlphaTest.l(*Image.OGLIMAGE)
|
OGLImageGetAngle.f(*Image.OGLIMAGE)
|
OGLImageGetColorB.f(*Image.OGLIMAGE)
|
OGLImageGetColorG.f(*Image.OGLIMAGE)
|
OGLImageGetColorR.f(*Image.OGLIMAGE)
|
OGLImageGetGLTexture.l(*Image.OGLIMAGE)
|
OGLImageGetHeight.l(*Image.OGLIMAGE)
|
OGLImageGetWidth.l(*Image.OGLIMAGE)
|
OGLImageGetZoomX.f(*Image.OGLIMAGE)
|
OGLImageGetZoomY.f(*Image.OGLIMAGE)
|
OGLImageLoadDIMG.l(File.s, ar.l, ag.l, ab.l) - Loads a DIMG from a file.
|
OGLImageLoadRaw.l(File.s) - Loads a RAWImage and returns *Image
|
OGLImageLoadTGA.l(File.s) - Loads a TGAImage and returns *Image
|
OGLImageQuality(*Image.OGLIMAGE, Quality.l = #True) - If zooming shall be raw or interpolated
|
OGLImageRenderToStart.l(*Image.OGLIMAGE) - Starts rendering on an image.
|
OGLImageRenderToStop.l() - Stops rendering to the image.
|
OGLImageSetAlpha(*Image.OGLIMAGE, Alpha.f = 1.0) - Sets alpha channel for whole Image -> Transparency when blending
|
OGLImageSetAlphaTest(*Image.OGLIMAGE, Flag.l) - Enables/disables alpha test für OGLImageDraw()
|
OGLImageSetAngle(*Image.OGLIMAGE, Angle.f = 0.0) - Sets the rotation angle for the image
|
OGLImageSetClip(*Image.OGLIMAGE, x.f = 0, y.f = 0, Width.f = 1, Height.f = 1) - To draw only the area defined by x,y,width,height of the texture.
|
OGLImageSetColor(*Image.OGLIMAGE, r.f = 1, g.f = 1, b.f = 1) - Sets the overall color of the image, you can set some channels to 0 when you dont want to see for example the red channel.
|
OGLImageSetZoom(*Image.OGLIMAGE, ZoomX.f = 1.0, ZoomY.f = 1.0) - Set zoom values for the Image, the values shouldn't be negative
|
OGLParticleEmitterCreate.l(ParticleCount.l, CFunc.OGLColorFunc) - Creates a new ParticleEmitter.
|
OGLParticleEmitterDraw(*pEmit.OGLPARTICLEEMITTER) - Draws all particles of the emitter
|
OGLParticleEmitterFree(*pEmit.OGLPARTICLEEMITTER) - Frees Memory
|
OGLParticleEmitterSetData(*pEmit.OGLPARTICLEEMITTER, x.f, y.f, Mode.l, SpeedMin.f, SpeedMax.f, Size.f, Range.f, Gravity.f, TtlMin.l, TtlMax.l, Direction.f, Probability.f) - Sets all parameters at once.
|
OGLParticleEmitterSetDirection(*pEmit.OGLPARTICLEEMITTER, a.f) - Sets main direction of the emitter.
|
OGLParticleEmitterSetGravity(*pEmit.OGLPARTICLEEMITTER, Gravity.f) - Sets the acceleration in y-direction.
|
OGLParticleEmitterSetMode(*pEmit.OGLPARTICLEEMITTER, Flag.l) - Mode: #True means that particles start with a size of 0 and grow to the size you set before.
|
OGLParticleEmitterSetPos(*pEmit.OGLPARTICLEEMITTER, x.f, y.f) - Sets the position of the emitter.
|
OGLParticleEmitterSetProbability(*pEmit.OGLPARTICLEEMITTER, Prob.f) - Sets the probability (0.
|
OGLParticleEmitterSetRange(*pEmit.OGLPARTICLEEMITTER, a.f) - Sets the spreading range.
|
OGLParticleEmitterSetSize(*pEmit.OGLPARTICLEEMITTER, Size.f) - Sets the start/end size of the particles (depending on Mode).
|
OGLParticleEmitterSetSpeed(*pEmit.OGLPARTICLEEMITTER, SpeedMax.f, SpeedMin.f) - Speed means the starting speed of the particles -> this is also the range of how far particles can be spread.
|
OGLParticleEmitterSetTTL(*pEmit.OGLPARTICLEEMITTER, TtlMin.l, TtlMax.l) - Sets TimeToLive for the particles.
|
OGLParticleEmitterUpdate(*pEmit.OGLPARTICLEEMITTER) - Updates position of particles and create new ones
|
OGLRect(x1.f, y1.f, x2.f, y2.f, r.f, g.f, b.f, a.f = 1.0, z.f = 0.0) - Draws an simple rect (including glBegin_() and glEnd_())
|
OGLScreenClear(r.f, g.f, b.f, a.f = 0.0) - Clears the screen and resets the matrix.
|
OGLSpeech(Text.s) - Speaks a text!
|
OGLStart.l(InitFunc.DrawingCallback, DrwFunc.DrawingCallback, Width.l, Height.l, Depth.l, Fullscreen.l, Title.s) - Start OGL-Scene
|
OGLSwapBuffers() - Exchanges front and backbuffer -> makes the whole scene visible
|
OGLTimerCreate.l(LoopTime.l) - creates a loop timer to simply time some looping movements
|
OGLTimerFree(*timer._OGLLOOPTIMER) - frees a timer
|
OGLTimerGetTime.f(*timer._OGLLOOPTIMER) - gets the current loop time (between 0.
|
OGLTimerPause(*timer._OGLLOOPTIMER, Pause.l) - stops the timer in the current state -> time will freeze
|
OGLTimerReset(*timer._OGLLOOPTIMER) - resets the loop state to start (time = 0.
|
OGLVertex(x.f, y.f, r.f, g.f, b.f, a.f = 1.0, z.f = 0.0) - Sets a vertex inside glBegin_() and glEnd_()
|
TODEG(Value)
|
TORAD(Value)
|