Author Topic: Video.h  (Read 3328 times)

0 Members and 1 Guest are viewing this topic.

Offline Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
Video.h
« on: July 02, 2007, 01:23:11 AM »
//
//
//     Welcome to join our develope team 
//      contact us now for more details
//
//    Mail&MSN: neoflash_team@hotmail.com
//           mIRC : #neo @ EFnet
//
//         http://www.neoflash.com     
//                                     
//

#ifndef __PAL_H
#define __PAL_H

#define PAL_ERROR         0
#define PAL_SUCCESS         1

#define PAL_TYPE_BG_A      0
#define PAL_TYPE_OBJ_A      1
#define PAL_TYPE_BG_B      2
#define PAL_TYPE_OBJ_B      3

#define TILE_ERROR         0
#define TILE_SUCCESS      1

#define TILE_TYPE_BG_A      0
#define TILE_TYPE_OBJ_A      1
#define TILE_TYPE_BG_B      2
#define TILE_TYPE_OBJ_B      3

#define OBJ_ERROR         0
#define OBJ_SUCCESS         1

#define OBJ_TYPE_A         0
#define OBJ_TYPE_B         1

#define OBJ_SIZE_8_8      ( ( 0<<14 ) | (0<<30) )
#define OBJ_SIZE_16_16      ( ( 0<<14 ) | (1<<30) )
#define OBJ_SIZE_32_32      ( ( 0<<14 ) | (2<<30) )
#define OBJ_SIZE_64_64      ( ( 0<<14 ) | (3<<30) )

#define OBJ_SIZE_16_8      ( ( 1<<14 ) | (0<<30) )
#define OBJ_SIZE_32_8      ( ( 1<<14 ) | (1<<30) )
#define OBJ_SIZE_32_16      ( ( 1<<14 ) | (2<<30) )
#define OBJ_SIZE_64_32      ( ( 1<<14 ) | (3<<30) )

#define OBJ_SIZE_8_16      ( ( 2<<14 ) | (0<<30) )
#define OBJ_SIZE_8_32      ( ( 2<<14 ) | (1<<30) )
#define OBJ_SIZE_16_32      ( ( 2<<14 ) | (2<<30) )
#define OBJ_SIZE_32_64      ( ( 2<<14 ) | (3<<30) )

u16 *PalPtr( u32 type, u32 index );
u32 PalCopy( u16 *dst, const u16 *src );

u16 *TilePtr( u32 type, u32 index );
u32 TileCopy( u16 *dst, const u16 *src, u32 count );

u16 *OBJPtr( u32 type, u32 index );
void OBJClear( u16 *obj );
void OBJDisable( u16 *obj );
void OBJPos( u16 *obj, int x, int y );
void OBJPal( u16 *obj, u32 index );
void OBJTile( u16 *obj, u32 index );

#endif
In my world,have 0 and 1 only ......Matrix World......