本节将绘制一个三角形 先看最终代码: MyGlWindow.cpp: 启用通道 每个顶点都有多种attributes,例如位置,颜色等。 为了让把数据从内存发送到显卡中,我们需要告诉OpenGL去开启某个attribute。 17 行使用glEnableVertexAttribArray()函数来启 ...
Computer program: A list of instructions(code) meant to be followed by a computer Executing a program: Programs must first be converted into machine c ...
分类:
其他好文 时间:
2018-01-22 13:05:00
阅读次数:
119
Latex插图的命令是\includegraphics[选项]{文件} 这里的选项在表 7.1, 7.2, 7.3 中列出。 因为 \includegraphics 不会结束 当前段落,所以它能够在文本中放置图形如 和 。 下面的命令将以 file.eps 的自然大小插入到 LATEX 文档中: \ ...
分类:
其他好文 时间:
2018-01-22 01:18:40
阅读次数:
262
package com.example.app.sw.kg; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.g... ...
分类:
移动开发 时间:
2018-01-21 20:40:47
阅读次数:
244
学到的内容: 计算机发展史 Linux命令 计算机(computer),俗称电脑,是一种高速计算的电子计算机器,可用于数据运算,数据统计,数值计算,逻辑计算,具有记忆存储功能,数据存储,自动化的高速处理海量数据,计算机主要由硬件系统和软件系统两个部分组成,没有安装任何操作系统的计算机被称之为裸机(T ...
分类:
编程语言 时间:
2018-01-21 19:18:53
阅读次数:
193
创建图形对象 在窗体或控件的 Paint 事件中接收对图形对象的引用,作为 PaintEventArgs 的一部分。 在为控件创建绘制代码时,通常会使用此方法来获取对图形对象的引用。 同样,您也可以在处理 PrintDocument 的 PrintPage 事件时获取作为 PrintPageEven ...
分类:
其他好文 时间:
2018-01-21 11:11:57
阅读次数:
231
Overload List Name Description DrawRectangle(Pen,?Int32,?Int32,?Int32,?Int32) Draws a rectangle specified by a coordinate pair, a width, and a height. ...
分类:
其他好文 时间:
2018-01-21 11:00:41
阅读次数:
172
重载列表 名称 说明 DrawEllipse(Pen,?Int32,?Int32,?Int32,?Int32) 绘制一个由边框定义的椭圆,该边框由矩形的左上角坐标 pen Type: System.Drawing.Pen Pen,它确定曲线的颜色、宽度和样式。 x Type: System.Int3 ...
分类:
其他好文 时间:
2018-01-21 11:00:34
阅读次数:
192
DrawArc 绘制圆弧 DrawBezier 绘制贝塞尔曲线 DrawBeziers绘制贝塞尔曲线组 DrawClosedCurve 绘制封闭曲线 DrawCurve 绘制曲线 DrawEllipse 绘制椭圆 DrawIcon 绘制图标 DrawIconUnstrectched 无缩放绘制图标 ...
分类:
其他好文 时间:
2018-01-21 11:00:17
阅读次数:
319
一、环境搭建 JDK(java环境)、SDK(adb appt环境),这两个已经不想再叙述了直接看详见--> android studio 安装,下载地址:https://developer.android.google.cn/studio/index.html 安装完成,打开后大概是这个样子的: ...
分类:
移动开发 时间:
2018-01-20 19:49:15
阅读次数:
342