Code Search for Developers
 
 
  

macalleg.h from Allegro game programming library at Krugle


Show macalleg.h syntax highlighted

/*         ______   ___    ___
 *        /\  _  \ /\_ \  /\_ \
 *        \ \ \L\ \\//\ \ \//\ \      __     __   _ __   ___
 *         \ \  __ \ \ \ \  \ \ \   /'__`\ /'_ `\/\`'__\/ __`\
 *          \ \ \/\ \ \_\ \_ \_\ \_/\  __//\ \L\ \ \ \//\ \L\ \
 *           \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/
 *            \/_/\/_/\/____/\/____/\/____/\/___L\ \/_/ \/___/
 *                                           /\____/
 *                                           \_/__/
 *
 *      MacOs header file for the Allegro library.
 *      This should be included by everyone and everything.
 *
 *      By Ronaldo Hideki Yamada.
 *
 *      See readme.txt for copyright information.
 */


#ifndef MAC_ALLEGRO_H
#define MAC_ALLEGRO_H

#ifndef ALLEGRO_H
#error Please include allegro.h before macalleg.h!
#endif

#ifdef __cplusplus
   extern "C" {
#endif

#if (!defined SCAN_EXPORT) && (!defined SCAN_DEPEND)
#endif

#include <MacTypes.h>		//theses includes aways are needed in normal mac programs
#include <Quickdraw.h>
#include <Fonts.h>
#include <Windows.h>
#include <Controls.h>
#include <Menus.h>
#include <TextEdit.h>
#include <Dialogs.h>
#include <Devices.h>
#include <Events.h> 
#include <Scrap.h>
#include <Errors.h>
#include <errno.h>
#include <Script.h>
#include <Memory.h>
#include <Events.h>
#include <Sound.h>

#include <ToolUtils.h>
#include <TextUtils.h>
#include <NumberFormatting.h>
#include <FixMath.h>
#include <fp.h>
#include <Traps.h>

#include <stdio.h>

#include <Files.h>
#include <StandardFile.h>
#include <Timer.h>
#include <DrawSprocket.h>
#include <Sound.h>

#include "allegro/platform/macdef.h"


typedef AL_BITMAP AL_BITMAP;

typedef struct{
	CGrafPtr cg;
	long	rowBytes;
	unsigned char* first;
	unsigned char* last;
	long	flags;
	int		cachealigned;
	Ptr		data;
	}mac_bitmap;

#define MEMORY_ALIGN 4
#define GETMACBITMAP(bmp)((mac_bitmap*)(bmp->extra))

#pragma options align=mac68k
typedef struct mac_sample{
	short		formatType;
	short		numberSyns;
	short		idFirstSynth;
	long		INIToptions;
	short		numCommands;
	short		command1;
	short		param1;
	long		param2;
	SoundHeader	s;
	}mac_sample;
typedef mac_sample **hmac_sample;
#pragma options align=reset

typedef struct mac_voice{
	SndChannelPtr channel;
	SndListHandle sample;
	short headsize;
	long headeroff;
	int loop;
	int loop_start;
	int loop_end;
	int vol;
	int pan;
	int frequency;
	AL_SAMPLE * al_sample;
	}mac_voice;


AL_VAR(QDGlobals , qd);
AL_VAR(AL_GFX_VTABLE,__mac_sys_vtable8);
AL_VAR(AL_GFX_VTABLE,__mac_sys_vtable15);
AL_VAR(AL_GFX_VTABLE,__mac_sys_vtable24);

extern void _mac_lock(void *address, unsigned long size);
extern void _mac_unlock(void *address, unsigned long size);

#ifdef __cplusplus
   }
#endif

#endif          /* ifndef MAC_ALLEGRO_H */






See more files for this project here

Allegro game programming library

Allegro is a cross-platform library intended for use in computer games and other types of multimedia programming.

Project homepage: http://sourceforge.net/projects/alleg
Programming language(s): Assembly,C,Shell Script
License: other

  allegro/
    inline/
      3dmaths.inl
      asm.inl
      color.inl
      draw.inl
      file.inl
      fix.inl
      fmaths.inl
      gfx.inl
      gui.inl
      matrix.inl
      rle.inl
      system.inl
    internal/
      aintern.h
      aintvga.h
      alconfig.h
    platform/
      aintbeos.h
      aintdos.h
      aintlnx.h
      aintmac.h
      aintqnx.h
      aintunix.h
      aintwin.h
      al386gcc.h
      al386vc.h
      al386wat.h
      albcc32.h
      albecfg.h
      albeos.h
      aldjgpp.h
      aldos.h
      almac.h
      almaccfg.h
      almngw32.h
      almsvc.h
      alqnx.h
      alqnxcfg.h
      alucfg.h
      alunix.h
      alwatcom.h
      alwin.h
      macdef.h
    3d.h
    3dmaths.h
    alcompat.h
    alinline.h
    base.h
    color.h
    compiled.h
    config.h
    datafile.h
    debug.h
    digi.h
    draw.h
    file.h
    fix.h
    fixed.h
    fli.h
    fmaths.h
    gfx.h
    gui.h
    joystick.h
    keyboard.h
    matrix.h
    midi.h
    mouse.h
    palette.h
    quat.h
    rle.h
    sound.h
    stream.h
    system.h
    text.h
    timer.h
    unicode.h
  allegro.h
  bealleg.h
  linalleg.h
  macalleg.h
  qnxalleg.h
  winalleg.h
  xalleg.h