CAST II Game Engine

   MAIN       FEATURES       SCREENSHOTS       FORUMS       MANUAL       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Unit OBasics

Description

!!! The unit will be replaced with Basics !!! Oberon basics unit (C) 2004-2007 George "Mirage" Bakhtadze. The source code may be used under either MPL 1.1 or LGPL 2.1 license. See included license.txt file
The unit contains compiler basic functions and classes

Classes, Interfaces and Objects

NameDescription
Class TDStream 
Class TFileDStream 

Functions and Procedures

Overview

function AddColorW(Color1, Color2: Cardinal; W1, W2: Single): Cardinal;
function BlendColor(Color1, Color2: Cardinal; K: Single): Cardinal;
function InvSqrt(x: Single): Single;
function MaxS(V1, V2: Single): Single;
function MinS(V1, V2: Single): Single;

Description

function AddColorW(Color1, Color2: Cardinal; W1, W2: Single): Cardinal;

Fast inverse square root. Depends on float numbers representation

function BlendColor(Color1, Color2: Cardinal; K: Single): Cardinal;

 

function InvSqrt(x: Single): Single;

 

function MaxS(V1, V2: Single): Single;

 

function MinS(V1, V2: Single): Single;

 

Constants

Overview

feCannotOpen = -6;
feCannotRead = -2;
feCannotSeek = -5;
feCannotWrite = -3;
feInvalidFileFormat = -4;
feNotFound = -1;
feOK = 0;
fuAppend = 3;
fuRead = 1;
fuWrite = 2;
OneAsInt : LongWord = $3F800000;
OneAsInt2 : LongWord = $3F800000 shl 1;

Description

feCannotOpen = -6;

 

feCannotRead = -2;

 

feCannotSeek = -5;

 

feCannotWrite = -3;

 

feInvalidFileFormat = -4;

 

feNotFound = -1;

 

feOK = 0;

File errors

fuAppend = 3;

 

fuRead = 1;

File usage modes

fuWrite = 2;

 

OneAsInt : LongWord = $3F800000;

 

OneAsInt2 : LongWord = $3F800000 shl 1;

 

Last modified: Jan 6, 2010
Copyright (C) 2006-2010, casteng.com