opentk
liandn
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
1.Windows.Forms + GLControl
第一次开发opengl,本文介绍在windowsform下通过使用glcontrol进行开发的例子,最终结果是显示一个蓝底的窗体和一个黄色的三角形。1.绘制蓝底的窗体GL.ClearColor(Color.SkyBlue);GL.Clear(ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit);glCont原创 2015-01-07 17:11:10 · 2266 阅读 · 0 评论 -
3.立方体和旋转
static void Main(string[] args) { GameWindow game = new GameWindow(); game.Load += (sender, e) => { // setup settings, load textures, sounds原创 2015-01-19 16:22:42 · 607 阅读 · 0 评论 -
2.纹理贴图
本文演示使用opentk本地图片进行贴图。1.读入图片及属性设置Bitmap _bitmap = new Bitmap("logo.jpg"); BitmapData bitmapData = _bitmap.LockBits( new Rectangle(0, 0, _bitmap.Width, _bitmap.Height),原创 2015-01-19 15:15:05 · 1135 阅读 · 0 评论
分享