![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 2028 阅读 · 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 · 558 阅读 · 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 · 990 阅读 · 0 评论