/*
 * $Id: raster.h,v 1.1 2003/02/07 18:15:44 wheeler Exp $
 *
 * $Log: raster.h,v $
 * Revision 1.1  2003/02/07 18:15:44  wheeler
 * Fox's version of libultra and friends.
 *
 * Revision 1.7  1996/11/21  06:35:30  hayakawa
 * インクルードするべきファイルをインクルードしていなかった
 *
 * Revision 1.6  1996/10/20  09:16:12  hayakawa
 * _LANGUAGE_C_PLUS_PLUS を __cplusplus に変更
 *
 */

#ifndef __RASTER_H_
#define __RASTER_H_

#include "ultra64.h"

typedef struct raster_s {
    float start;		/* 初期値(rad) */
    float step;			/* 増分/行(rad/line) */
    float size;			/* スクロール横幅(dot) */
    int start_y;		/* スクロール開始Ｙ座標(line) */
    void *vram;			/* ＲＣＰ先頭アドレス */
    int fmt;
    int siz;
    int wd;
    int ht;
} raster_t;

#ifdef __cplusplus
extern "C" {
#endif
    
void
raster_move(
    raster_t *this1,
    Gfx **glistpp
);

raster_t *
raster_init(
    raster_t *this1
);

void
raster_kill(
    raster_t *this1
);

void
raster_SetScrollParam(
    raster_t *this1,
    float start,
    float step,
    float size
);

void
raster_SetVRAMAddress(
    raster_t *this1
);

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* __RASTER_H_ */
