码迷,mamicode.com
首页 >  
搜索关键字:draw ondraw dispatc    ( 2092个结果
Delphi下OpenGL2d绘图(04)-画四边形
一、前言画四边形基本上与前几遍文字代码是相同。区别在于glBegin()的参数“GL_QUADS”。绘制的框架代码可以使用Delphi下OpenGL2d绘图(01)-初始化中的代码。修改的部份为 Draw 函数的内容。二、画四边形使用GL_QUADS:绘制由四个顶点组成的一组单独的四边形。顶点4n-...
分类:其他好文   时间:2014-07-16 21:14:27    阅读次数:160
Cocos2d-x 3.1.1 学习笔记(三)学习绘图API
关于cocos2d-x 3.1.1 版本的绘图方法有两种 1、使用DrawNode类绘制自定义图形。 2、继承Layer类重写draw()方法。 以上两种方法都可以绘制自定义图形,根据自己的需要选择合适的方法。一、使用DrawNode类绘制自定义图形 使用DrawNode 类绘制图形是最...
分类:Windows程序   时间:2014-07-16 21:06:51    阅读次数:553
数组与泛型容器区别
一。基本class Shape{ void draw(){ System.out.println(this+".draw()"); }}class Circle extends Shape{ @Override public String toString() ...
分类:其他好文   时间:2014-07-16 20:46:30    阅读次数:132
自定义控件——onMeasure(转)
转自:http://blog.csdn.net/pi9nc/article/details/18764863可以说重载onMeasure(),onLayout(),onDraw()三个函数构建了自定义View的外观形象。再加上onTouchEvent()等重载视图的行为,可以构建任何我们需要的可感知...
分类:其他好文   时间:2014-07-16 19:57:20    阅读次数:242
ActiveX显示图片
直接看代码:// IPlayCtlpublic: HRESULT OnDraw(ATL_DRAWINFO& di) { RECT& rc = *(RECT*)di.prcBounds; /* Rectangle(di.hdcDraw, rc.le...
分类:其他好文   时间:2014-07-09 22:13:03    阅读次数:257
Java多态小总结
多态,又可以称为动态绑定,即在运行时确定类型,比如: 1 class A { 2 void draw(){ 3 //输出“A” 4 } 5 } 6 class B { 7 void draw(){ 8 //输出“B” 9 }10 11 }这种关系里,如果调用A a...
分类:编程语言   时间:2014-07-07 00:30:44    阅读次数:301
hdu-4724-How Long Do You Have to Draw-贪心
题目看起来很难,其实很简单。。。。 根据题意可知,如果想连到最多的三角形,肯定是每个点都要跟其他的点相连。 然后就贪心当前连接情况下,哪一种连接方式用掉的线段最短,然后算出总和即可。 #include #include #include #include #include #include #include #include #include using namespace std; #de...
分类:其他好文   时间:2014-07-06 00:31:22    阅读次数:202
MFC对话框上添加PNG格式的图片的方法
使用CImage类1.在stdafx.h中加入#include 2.在xxxdlg.h中添加CImage m_Img3.在OnInitDialog中添加m_Img.Load(_T("res\\1.png"));4.在OnPaint()添加显示png的代码: m_Img.Draw(GetDC()->m...
分类:其他好文   时间:2014-07-02 22:32:02    阅读次数:291
ios draw circle with animation
http://stackoverflow.com/questions/7991086/iphone-core-animation-drawing-a-circle// Set up the shape of the circleint radius = 100;CAShapeLayer *circl...
分类:移动开发   时间:2014-07-01 22:36:06    阅读次数:679
Effective C++:条款34:区分接口继承和实现继承
(一) class Shape { public: virtual void draw() const = 0; virtual void error(const string& msg); int objectID() const; }; class Rectangle : public Shape {...}; class Ellipse : publi...
分类:编程语言   时间:2014-06-30 00:55:48    阅读次数:409
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!