最入门的方法写的API..主要还是借机学习...用的是展鸿大佬的TextureRender
下载地址:http://pan.baidu.com/s/1hsmLczU
* 支持32个纹理通道和32个文本通道
* 仅支持TGA( RGB 32bit )和BMP( Indexed 8bit )
* 更多信息请打开压缩包自行查看
提供的API:
------------------------------
/* 生成纹理通道和文本通道 | Channel Generation */
native R_GenTextureChannel();
native R_GenTextChannel();
/* 绘制纹理 | Draw Texture */
native R_DrawTexture( TextureChannel, const Texture[], RenderMode, Red, Green, Blue, Alpha, X, Y, Width, Height );
/* 释放纹理通道 | Free the Texture Channel */
native R_RemTexture( TextureChannel );
/* 绘制文本 | Draw Text */
native R_DrawText( TextChannel, const Text[], const WindowsFontName[], Size, Style, Flag, Red, Green, Blue, Alpha, X, Y );
// >> Windows Font List: https://en.wikipedia.org/wiki/List_of_typefaces_included_with_Microsoft_Windows
/* 释放文本通道 | Free the Text Channel */
native R_RemText( TextChannel );
/* 判断是否为本地玩家 | Check if is the local player */
native R_IsLocalPlayer( Client );
/* 获取屏幕宽度和高度 | Screen Informations */
native R_GetScreenWidth();
native R_GetScreenHeight();
------------------------------
下载地址:http://pan.baidu.com/s/1hsmLczU
* 支持32个纹理通道和32个文本通道
* 仅支持TGA( RGB 32bit )和BMP( Indexed 8bit )
* 更多信息请打开压缩包自行查看
提供的API:
------------------------------
/* 生成纹理通道和文本通道 | Channel Generation */
native R_GenTextureChannel();
native R_GenTextChannel();
/* 绘制纹理 | Draw Texture */
native R_DrawTexture( TextureChannel, const Texture[], RenderMode, Red, Green, Blue, Alpha, X, Y, Width, Height );
/* 释放纹理通道 | Free the Texture Channel */
native R_RemTexture( TextureChannel );
/* 绘制文本 | Draw Text */
native R_DrawText( TextChannel, const Text[], const WindowsFontName[], Size, Style, Flag, Red, Green, Blue, Alpha, X, Y );
// >> Windows Font List: https://en.wikipedia.org/wiki/List_of_typefaces_included_with_Microsoft_Windows
/* 释放文本通道 | Free the Text Channel */
native R_RemText( TextChannel );
/* 判断是否为本地玩家 | Check if is the local player */
native R_IsLocalPlayer( Client );
/* 获取屏幕宽度和高度 | Screen Informations */
native R_GetScreenWidth();
native R_GetScreenHeight();
------------------------------