自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

自由空间,实现思想的自由之地

——游戏引擎及计算机图形学技术

  • 博客(9)
  • 资源 (2)
  • 收藏
  • 关注

原创 freetype2使用基础程序

#include #include #include // freetype2 头文件#include #include FT_FREETYPE_H // for freetype support#include FT_GLYPH_H// 最终文本内容存放的内存区域#define WIDTH   640#define HEIGHT  480unsigned char image[HEIGHT][WIDTH];/* 将freetype2渲染出的字符信息拷贝到文本内存 */void draw_bitmap( F

2010-09-28 15:08:00 1994

原创 FreeType2.0在Visual C++8.0 Express编译为DLL

<br />      FreeType2.0是移植性最好的字体渲染的库,然而,官方代码只能使用Make进行编译。下面是一些使用VC++2008Exp进行编译的过程和注意点。<br /> <br />1.下载最新的freetype2库<br />    http://www.freetype.org<br /> <br />2.建立一个空的windows DLL库<br />    在解压出来的代码目录下的/builds/win32目录下建立自己的项目目录及项目文件如:目录名vc2008Exp/freety

2010-09-28 14:45:00 847

原创 Some ideas to embedding lua into C/C++

<br />1. Two different way<br />     lua_open can create a new lua_State. Every lua_State has its own execute environment. So, we can create more than one lua_State.<br />     Way 1: Create a lua_State, load all lua script in it. Call functions in the lua_

2010-09-27 14:39:00 581

原创 Lua stack dump for c++

<br /><br />Any interactions between c++ and lua are going through lua stack. Aware of the stack status may help for debugging. I always do that, will a peek of the current Lua stack not only helps me debug my codes but also helps me figure out the ways ho

2010-09-27 13:57:00 2042

转载 How to embed Lua 5.1 in C++

<br /><br />Lua, is a scripting language providing dynamic data structures, maths, io and string manipulations just like any interprete language such as Bash, Python, Ruby etc.<br />What is so special about Lua? <br />Lua is Fast, Light-weight and Embeddab

2010-09-27 13:54:00 958

转载 calling c++ function from Lua, implement sleep function

<br /><br />You can’t call c function directly from Lua, you have to create a wrapper function that allows calling from Lua. In this post, shows a simple example to implement millisecond sleep function to Lua using nanosleep.<br />To allow function call fr

2010-09-27 13:51:00 654

转载 Accessing Lua global variables from c++

<br /><br />Calling Lua scripts from c++’s example was written in post How to embed Lua 5.1 in C++. Now, let us look at how to access Lua’s global variables from c++.<br />Value passing between c++ and Lua rely on Lua stack. Stack is a data structure based

2010-09-27 13:49:00 524

原创 Calling Lua function from C++

<br /><br />Calling Lua function from c++ is very simple. Value passing between c++ and Lua goes through stack, Lua C API provides a convenience ways for you to call Lua function from C. To call Lua function, you need to specify:<br />1. Function Name.<br

2010-09-27 13:41:00 925

原创 引擎新架构设计及思考

新引擎设计及思考。

2010-09-26 13:26:00 484

GPU Architecture Instroduction

一个很好的GPU架构介绍文档。

2017-03-24

Hologram效果

Hologram效果 shader实现。

2015-04-02

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除