All Code Archive Entries by sswift

Code Archives
TitleDescriptionCategoryDate
Raw keyboard functionsGet the state of the keyboard (and mouse) even when a gadget or other appication has focus!BlitzPlus Gui2005-03-09
GetSystemColor()Uses windows GDI functions to tell you what color different interface elements in windows are.BlitzPlus Gui2005-03-07
ScaleImageFastThis function scales an image an arbitrary amount on each axis, and is 80x faster than the default ScaleImage function in Blitz!Graphics2005-02-28
"Marching Ants" Selection LineThis function draws an automatically animated line of dots that move along a line from the first point to the second.Graphics2005-02-21
RemoveTabberHottracking()This function stops the tabber gadget in Blitzplus from highlighting the tabs in blue when you mouse over them.BlitzPlus Gui2005-02-19
2D Point in TriangleThsi function tells you if a 2D point is in a 2D triangleGraphics2005-02-17
GadgetEnabled()Tells you if a gadget or window is currently enabled.BlitzPlus Gui2005-02-16
Improved Mouse FunctionsThis set of functions tells you where the mouse or a gadget is on the screen (or relative to a gadget), and whether the mouse is over a gadget.BlitzPlus Gui2005-02-13
SetPointerThis function allows you to change the mouse pointer in BlitzUser Input2005-02-13
Calculate_FrontFacingVerticesThis function calculates all vertices in a mesh which are visible to a camera.3D Graphics - Mesh2004-03-25
Calcualte_FaceNormalsThis function calculates the face normals for a mesh.3D Graphics - Mesh2004-03-25
CalculateNormalsThis function calculates face and vertex normals for a mesh using a method which works better for levels (and many other types of meshes) than the built in function.3D Graphics - Mesh2004-03-25
Weighted Random NumbersA simple code example to show how to generate weigthed random numbers where one number appears more often than another,Algorithms2004-03-11
HasFocus()This function tells you if your game window currently has focus.Miscellaneous2003-12-12
Distant Object RendererTurns distant objects into a texture which you can then display as a sky.3D Graphics - Misc2003-10-25
Yet Another Lightmapper ImprovementThis update to version 1.4 of YAL fixes numerous graphical glitches.3D Graphics - Misc2003-09-14
Ray / Line Segment IntersectionRay_Intersect_Triangle, and Ray_Intersect_Mesh3D Graphics - Maths2003-09-14
BlurTexture()This function blurs a texture using 3D acceleration.3D Graphics - Misc2003-07-31
Perlin Noise HeightMap GeneratorThis function generates fractal heightmaps for terrains.3D Graphics - Misc2003-05-18
GetWord$()This function finds "word" number X within a string.Miscellaneous2003-05-13
Set Camera FOVSets the field of view of the camera with degrees instead of a seemingly incomprehensible "zoom" value.3D Graphics - Misc2003-05-08
Swift Event SystemAn event system for triggering events in your game, or animating objects.Algorithms2003-03-23
AddMeshToSurfaceThis function allows you to otpimize your levels by addding a single surface mesh to a specific surface of another mesh.3D Graphics - Mesh2003-02-04
Font Texture CreatorCreates textures for fonts spanning multiple textures if desired.3D Graphics - Misc2003-02-01
Remove overlapping trianglesThis function removes overlapping triangles in a mesh, even across surfaces. For example, if you build a level out of cubes, this function will remove all faces sandwidched between cubes.3D Graphics - Mesh2002-12-11
Lines_Intersect()This function determines if two line segments intersect in 2D, and if so, where they intersect.Algorithms2002-10-26
Line NormalThis function will calculate the normal of a line.Algorithms2002-10-06
Cel ShaderCreates black outlines around a mesh so it looks like a cartoon.3D Graphics - Mesh2002-10-02
Point Inside Oriented Bounding BoxThis function tells you if a point is inside an entity's oriented bounding box.3D Graphics - Maths2002-09-02
EntityScaleX(), EntityScaleY(), EntityScaleZ()These three functions return the current scale of an entity on each axis.3D Graphics - Misc2002-08-28
Swift Terrain SystemThe Swift Terrain System - A fast, detailed, tiled mesh terrain with level of detailAlgorithms2002-08-27
Ray Intersect Triangle TestThis function tests if a ray intersects a triangle, and if so returns true. It also calculates the UV cordinates of the collision.3D Graphics - Maths2002-07-19
DeleteEntity vs. ClearSurface speed testThis tests the speed of copying one mesh to another constantly in two diffrent ways.3D Graphics - Mesh2002-07-17