上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: Vertex.h 1 #pragma once 2 3 #include <gl/glew.h> 4 5 //The vertex definition 6 struct Vertex 7 { 8 //This is the position struct, when you store a str 阅读全文
posted @ 2020-04-22 12:55 unicornsir 阅读(401) 评论(0) 推荐(0)
摘要: 等宽字体,比如Courier New字体,用SetFont设置。 控制台的字体是等宽的, 用等宽字体就跟控制台一样了 MFC中改变控件字体 在对话框的初始化函数中添加下段代码 1 static CFont Sfont; 2 static CFont Bfont; 3 //CFont font;//不 阅读全文
posted @ 2020-04-17 13:35 unicornsir 阅读(474) 评论(0) 推荐(0)
摘要: 借用子龙的一句话:不会写Shader,也敢说会OpenGL 参考:https://www.khronos.org/opengl/wiki/Shader_Compilation Shader使用需要2个过程,1. Shader编译 2.Shader链接,其过程类似于C/C++程序 Shader编译 创 阅读全文
posted @ 2020-04-17 12:54 unicornsir 阅读(229) 评论(0) 推荐(0)
摘要: 经过前面几个系列的洗礼,对SDL及OPENGL有了很粗浅的认识 这次我们要升级了,钟爱的Sprite的闪现,先做个没有Shader的Spite,什么? 还有Shader?Shader是神马东东,别急,下一系列就会出现Shader Sprite.h 1 #pragma once 2 #include 阅读全文
posted @ 2020-04-17 12:03 unicornsir 阅读(206) 评论(0) 推荐(0)
摘要: 1.C#方式 1 _Application excelApp; 2 try 3 { 4 excelApp = (_Application)Marshal.GetActiveObject("Excel.Application"); 5 } 6 catch(Exception) 7 { 8 // thi 阅读全文
posted @ 2020-04-17 11:32 unicornsir 阅读(1286) 评论(0) 推荐(0)
摘要: 完成系列二后,心里相当激动,如果能看到精美的游戏动画多好...... 这不是做梦,有梦想就能实现,但是我们还是一步一步来,先来看一下显示普通的图形 注:在此版本里,用了最容易的老式OPENGL,后面接下来用的是新式的moden opengl MainGame.h 1 #pragma once 2 # 阅读全文
posted @ 2020-04-16 12:46 unicornsir 阅读(201) 评论(0) 推荐(0)
摘要: 系列一完成后,总想跃跃欲试地看到怎么出现一个窗体 1.窗体的第一个版本 MainGame.h 1 #pragma once 2 #include <SDL/SDL.h> 3 #include <GL/glew.h> 4 5 class MainGame 6 { 7 public: 8 MainGam 阅读全文
posted @ 2020-04-16 11:24 unicornsir 阅读(157) 评论(0) 推荐(0)
摘要: 相关网址: SDL: https://www.libsdl.org/ GLEW:http://glew.sourceforge.net/ ***第一个注意点: 添加完成头文件和库后,想试试牛刀了 #include <SDL/SDL.h> int main() { return 0; } 出现了:LI 阅读全文
posted @ 2020-04-16 10:55 unicornsir 阅读(276) 评论(0) 推荐(0)
摘要: 今天是第一次在Mac book上编程,与在windows上写代码相比,既新鲜又充斥在许多小问题,还好很快掌握了 Adapter: 适配器Adapter是一种结构设计模式,其主要作用是允许不兼容的对象间通过一个转换接口协同工作。 适配器本身扮演的角色是两个对象间的包装器,通过对不兼容的对象进行包装从而 阅读全文
posted @ 2020-03-20 06:23 unicornsir 阅读(791) 评论(0) 推荐(0)
摘要: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-1-opening-a-window/ 阅读全文
posted @ 2020-03-15 13:22 unicornsir 阅读(392) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 下一页