![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
图像、图形
守护生命的绿荷
这个作者很懒,什么都没留下…
展开
-
codeblocks + opengl DDA算法
直线的DDA算法 #include #include #include #include #include #include int getValue(){ //scanf("%d %d %d %d",&x1,&y1,&x2,&y2); int k; scanf("%d",&k); return k; } void MyInit() {原创 2014-09-20 21:54:13 · 477 阅读 · 0 评论 -
opengl bezier曲线的实现
#include #include #include #include #include using namespace std; struct Point { int x,y; }; Point pt[4],bz[11]; vector vpt; bool bDraw; int nInput; void CalcBZPoints() { float a0,a1,a2原创 2014-10-18 12:35:07 · 571 阅读 · 0 评论 -
多边形画圆 vc6.0+opengl
#include #include void Drawing(); void Init(); void Display(); void Reshape(int,int); void DrawNGon(float,float,float,int,float=90,bool=false); void main(int argc,char **argv) { glutInit(&argc,ar原创 2014-11-29 18:00:34 · 1348 阅读 · 0 评论 -
mfc编程时相让鼠标的坐标显示在状态栏上
在CXXview 类中添加OnMouseMove鼠标映射函数在函数中添加以下代码: void CPointView::OnMouseMove(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default CString str; str.Format原创 2015-03-20 22:13:44 · 518 阅读 · 0 评论 -
消除VC 中的 Browser Info 警告
编译 Warning: “Compiler option 'Generate Browser Info' inconsistent with precompiled header;current command-line option will override that defined in the precompiled header”。 并且没有运行出来的程序: 解决方法:翻译 2015-03-20 22:17:24 · 862 阅读 · 0 评论