⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 our_draw16.h

📁 mtk 3D 游戏移植 试玩 带引擎源码
💻 H
字号:
/**************************************************************************
Copyright (C) jianbo miao Corporation.  All Rights Released.
this is a 3d engin named our_3d_engin.
our_3d_engin feature:
1:there is no float.
2:it do the 3d things all by softwear.
3:base on 1 and 2 , it can execution on arm which have no 3d hardwear accelerate.

  if you have any  suggestion or question,pls contact with me
  mail:miaojb@126.com
  msn:miaojianbo@hotmail.com
  qq:30209027
  
    2008/01/01
***************************************************************************/


#ifndef OUR_DRAW16
#define OUR_DRAW16

#include "our_cpu.h"
#include "our_math.h"
#include "our_3d.h"
//================================================================================================

extern int our_clip_x_min;
extern int our_clip_x_max;
extern int our_clip_y_min;
extern int our_clip_y_max;


#define OUR_0G0R0B_mask 0x07e0f81f
//================================================================================================

void OUR_Draw_set_clip(int x_min,int x_max,int y_min,int y_max);
//================================================================================================

int OUR_Draw_Line16(int x0, int y0, // starting position 
                    int x1, int y1, // ending position
                    int color,     // color index
                    UCHAR *vb_start, int lpitch); // video buffer and memory pitch

//int OUR_Clip_Line(int &x1,int &y1,int &x2, int &y2);
int OUR_Draw_Clip_Line16(int x0,int y0, int x1, int y1, int color, 
                         UCHAR *dest_buffer, int lpitch);
void OUR_Draw_Wire16( OUR_3D_OBJ_PTR	obj,UCHAR *video_buffer, int lpitch);
//void OUR_Draw_char16(CLR clor,char c,USHORT *dis_2, int lpitch);
void OUR_Draw_char16(int x,CLR clor,char c,USHORT *dis_2, int lpitch);
void OUR_Draw_Text16(int x,int y,CLR clor,char *s,UCHAR *dis, int lpitch);
void OUR_Draw_Text16_Big(int x,int y,CLR clor,char *s,UCHAR *dis, int lpitch);
int OUR_sprintf(char *d,char *s,int a[]);
void OUR_Draw_bmp16_SBLT( int x1,int y1,int x2,int y2,
                                                        int x3,int y3,int x4,int y4,
                                                        UCHAR *video_buffer, int lpitch,
                                                        OUR_BMP_INFO* bmp);
void OUR_Draw_bmp16_SBLT_T( int x1,int y1,int x2,int y2,
                                                        int x3,int y3,int x4,int y4,
                                                        int t,
                                                        UCHAR *video_buffer, int lpitch,
                                                        OUR_BMP_INFO* bmp);
void OUR_Draw_falsh_board16(int x1,int y1,int x2,int y2,int width,
                                                        CLR C_start,CLR C_end,
                                                        UCHAR *video_buffer, int lpitch);
void OUR_Draw_bmp16_BITL( int x1,int y1,int w,int h,
                                                        int x3,int y3,
                                                        UCHAR *video_buffer, int lpitch,
                                                        OUR_BMP_INFO* bmp);
void OUR_Draw_bmp16_BILT_bmp_Tbmp( int x1,int y1,int w,int h,
                                                        int x3,int y3,
                                                        int x5,int y5,
                                                        //int t,
                                                        UCHAR *video_buffer, int lpitch,
                                                        OUR_BMP_INFO* bmp,
                                                        OUR_BMP_INFO* tbmp);
void OUR_Draw_bmp16_BILT_Tbmp( int x1,int y1,int w,int h,
                                                        int x3,int y3,
                                                        //int t,
                                                        UCHAR *video_buffer, int lpitch,
                                                        OUR_BMP_INFO* bmp);
void OUR_Draw_bmp16_SBLT_Tbmp( int x1,int y1,int w,int h,
                                      int x3,int y3,int x4,int y4,
                                      //int t,
                                      UCHAR *video_buffer, int lpitch,
                                      OUR_BMP_INFO* bmp);
void OUR_Draw_bmp16_BITL_KEY( int x1,int y1,int w,int h,
                             int x3,int y3,
                             CLR16 key_clr,
                             UCHAR *video_buffer, int lpitch,
                             OUR_BMP_INFO* bmp);
void OUR_Draw_bmp16_font( int x1,int y1,
                                                        CLR16 clr1,char *s,
                                                        UCHAR *video_buffer, int lpitch,
                                                        OUR_BMP_INFO* bmp);
void OUR_Draw_Text16_BG(int x,int y,CLR clor,char *s,UCHAR *dis, int lpitch);
void OUR_Draw_set_txt_clip(int x_min,int y_min,int x_max,int y_max);
void OUR_set_txt_board(int w,int h);
//================================================================================================
// !"#$%&'()*+,-./0123456789:;<?@ABCDEFG
//================================================================================================
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -