自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

柠萌味

学习笔记

  • 博客(13)
  • 资源 (13)
  • 收藏
  • 关注

原创 顶点着色器

textfile.h的内容:char *textFileRead(char *fn);textfile.cpp的内容:#include<stdio.h>#include<stdlib.h>#include<string.h>char *textFileRead(char *fn){ FILE *fp; char *content = NULL; int coun...

2018-03-09 19:03:35 580

原创 片源着色器

textfile.h内容:char *textFileRead(char *fn);textfile.cpp内容:#include<stdio.h>#include<stdlib.h>#include<string.h>char *textFileRead(char *fn){ FILE *fp; char *content = NULL; int count ...

2018-03-09 18:47:08 597

原创 内置的uniform变量

gl_ModelViewMatrixgl_ProjectionMatrixgl_ModelViewProjectiongl_NormalMatrixgl_NormalScalegl_Pointgl_FrontMaterialgl_BackMaterialgl_LightModel

2018-03-07 13:49:03 415

原创 下载和安装GLUT

下载网址:https:://www.opengl.org/resources/libraries/glut点击The GLUT 3.7page with all info and all downloads->GLUT for Microsoft Windows 95& NT users->Glut for Windows->glut-3.7.6-bin.zip(117K...

2018-03-06 15:07:22 8899

转载 openGL绘制太阳系

 #include "stdafx.h"#include<windows.h>#include "gl.h"#include "glut.h"#include<stdlib.h>#include<stdio.h>//行星GLfloat rot0 = 30.0;GLfloat rot1 = 0.0;GLfloat rot2 = 0.0;GLfloat rot3 =..

2018-02-11 10:46:46 5576 1

原创 openGL时钟绘制

#include "stdafx.h"#include<windows.h>#include"glut.h"#include"gl.h"#include<time.h>#include<math.h>int width = 500;int height = 500;int radius = 100;float sangle, mangle, hangle;cha..

2018-02-11 10:39:45 2406 1

转载 openGL绘制小汽车

 #include <windows.h>  #include"gl.h" #include"glut.h"#include <math.h>  static GLfloat xRot = 0.0f;static GLfloat yRot = 0.0f;void Display(void){ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BU...

2018-02-11 10:37:43 10058 2

原创 openGL绘制多光源球

#include "stdafx.h"#include<windows.h>#include "gl.h"#include "glut.h"void RenderScene(void){ glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); glPushMatrix(); glTranslatef(-3.0f, -3.0f, 3.0f);/...

2018-02-11 10:34:53 918

原创 openGl深度测试,剔除背面测试

#include "stdafx.h"#include<Windows.h>#include"gl.h"#include"glut.h"//旋转参数static GLfloat xRot = 0.0f;static GLfloat yRot = 0.0f;//深度测试技术BOOL bDepth = FALSE;//剔除开关BOOL bCull = FALSE;//渲染场景void Se...

2018-02-11 10:29:50 590

原创 openGL键盘控制三角形旋转

#include "stdafx.h"#include<Windows.h>#include"gl.h"#include"glut.h"//确定多边形绕法bool bWinding = TRUE;//旋转参数static GLfloat xRot = 0.0f;static GLfloat yRot = 0.0f;void RenderScene(void){ glClear(GL_C...

2018-02-10 15:48:09 2554

原创 openGL绘制移动的矩形

#include "stdafx.h"#include"windows.h"#include"gl.h"#include"glut.h"//参数指定正方形位置和大小GLfloat x1 = 100.0f;GLfloat y1 = 150.0f;GLsizei rsize = 50;//正方形运动变换的步长GLfloat xstep = 1.0f;GLfloat ystep = 1.0f;//窗口大...

2018-02-10 14:54:25 1877

原创 openGL绘制矩形

#include "stdafx.h"#include"windows.h"#include"gl.h"#include"glut.h"//渲染场景void RenderScene(void){ //用当前清除色清除颜色缓冲区,设定窗口背景色 glClear(GL_COLOR_BUFFER_BIT); //设置当前绘图使用RGB颜色 glColor3f(1.0f, 0.0f, 0.0f); //使...

2018-02-10 14:35:34 1448

原创 openGL绘制点,线

#include "stdafx.h"#include<Windows.h>#include"gl.h"#include"glut.h"//渲染场景void RenderScene(void){ glClear(GL_COLOR_BUFFER_BIT);//用当前颜色填充窗口 glColor3f(1.0f, 0.0f, 0.0f);//设置当前的绘图RGB颜色值 GLfloat si...

2018-02-10 13:42:25 2318

小型互联网

计算机网络课程设计,路由器 PC机配置,静态,测试连通性,内含配置代码

2018-02-11

嵌入式 STM32

基于STM32的内部图片显示系统,image2lcd V2.9软件对图片进行编码

2018-02-11

EDA 数字钟

该数字钟可以实现3个功能:计时功能、整点报时功能和重置时间功能

2018-02-11

单片机 电子秒表

采用proteus进行电路仿真设计 用keil进行代码编译 STC89C51 数码管

2018-02-11

五位除法器 EDA

两个五位数相除的整数除法器。用发光二极管显示输入数值,用7 段显示器显示结果十进制结果。

2018-02-11

数据库 机房管理

内含有系统功能结构图,全局ER图,各种表以及关系图和相关代码

2018-02-11

基于VHDL的简易电子琴的设计与实现

键盘输入控制音响,同时报可以自动演奏乐曲。 演奏时可选择键盘输入乐曲或者已存入乐曲,并配以一个扬声器

2018-02-11

小型互联网的设计

用Boson Netsim软件实现小型互联网的综合设计CISCO路由器、交换机及PC及机的基本配置命令

2018-02-11

某单位人事管理系统

数据库课设:某单位人事管理系统,包含ER图,相应表格,相关代码

2018-02-11

java版本俄罗斯方块课设报告

基于java的俄罗斯方块游戏设计论文,可以控制游戏开始暂停和退出

2018-02-11

基于VC的连连看小游戏

基于mfc的连连看游戏,有关卡,会计时,图片是qq头像的,有背景音乐。可以用来做课设的。

2018-02-11

基于VC的大鱼吃小鱼游戏

基于mfc的大鱼吃小鱼课设作品,运行后有背景,键盘控制鱼的移动,启用定时器产生小鱼。

2018-02-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除