sources taken from book CD: ack_lib -> /ACK/WIN/ACK_LIB fdemo -> /ACK/DOS/FDEMO/SOURCE (and /ACK/DOS/BORLAND as needed) mall -> /ACK/DOS/MALL/SOURCE (and /ACK/DOS/BORLAND as needed) some source files were missing for the demo projects and needed to be copied from /ACK/DOS/BORLAND (as indicated above)
42 lines
826 B
C
42 lines
826 B
C
|
||
#include <windows.h>
|
||
#include <stdlib.h>
|
||
#include <stdio.h>
|
||
#include <dos.h>
|
||
#include <mem.h>
|
||
#include <io.h>
|
||
#include <fcntl.h>
|
||
#include <time.h>
|
||
#include <string.h>
|
||
#include <sys\stat.h>
|
||
|
||
//typedef unsigned short USHORT;
|
||
|
||
#include "ack3d.h"
|
||
#include "ackeng.h"
|
||
|
||
|
||
void AckBuildCeilingFloor (UCHAR *, short, short, short, short, short, short);
|
||
|
||
//±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±
|
||
// Generates a solid floor and ceiling
|
||
//±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±
|
||
short AckBuildBackground (ACKENG * ae)
|
||
{
|
||
|
||
/* Let the assembly routine do all the hard work */
|
||
|
||
#if FLOOR_ACTIVE
|
||
#else
|
||
AckBuildCeilingFloor (ae->BkgdBuffer,
|
||
ae->LightFlag,
|
||
ae->TopColor,
|
||
ae->BottomColor,
|
||
ae->WinStartY,
|
||
ae->WinEndY,
|
||
ae->CenterRow);
|
||
#endif
|
||
|
||
return (0);
|
||
}
|
||
|