杨帆博客

你想开发游戏还是改变世界?


  • 首页

  • 标签

  • 归档

  • 搜索

【DirectX】4-代码框架

发表于 2018-03-19 | 更新于: 2018-08-22

  在之前的代码中,我们使用了大量的代码去绘制了一个三角形。对于我们来说实在是有点麻烦了,如果每次都需要写这么多的代码的话无疑是很容易让人写崩溃的。在此和之后的几篇文章,我们将会对之前使用的基本功能进行封装。

  此篇所看教程来自:DirectX 11 Tutorials 。

阅读全文 »

Single-Number-II

发表于 2018-03-19 | 更新于: 2018-08-22

题目地址

LeetCode#137 Single Number II

题目描述

  Given an array of integers, every element appears three times except for one, which appears exactly once. Find that single one.

阅读全文 »

【DirectX】3-D3D三角形

发表于 2018-03-18 | 更新于: 2018-08-22

  上一篇文章中我们介绍了 交换链,设备,设备上下文 等等名词,并成功创建了他们,这篇中我们将和学习 OpenGL 时一样去使用三个顶点来绘制一个三角形。

  这篇中将要介绍的则是 ID3D11Buffer(缓冲) ,ID3D11VertexShader(顶点着色器) 和 ID3D11PixelShader(像素着色器) 这几个东西,我们将顶点数组构图,使用着色器填色。(事实上和我们的 OpenGL 基本一样)

阅读全文 »

Unique-Paths

发表于 2018-03-18 | 更新于: 2018-08-22

题目地址

LeetCode#62 Unique Paths

题目描述

  A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).

  The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked ‘Finish’ in the diagram below).

阅读全文 »

【OpenGL】Breakout-7-实现消除和挡板效果

发表于 2018-03-17 | 更新于: 2018-08-22

  在我们的游戏中,我们需要使用弹性球去破坏所有的可以破坏的东西来得到游戏的胜利。关于碰撞的检测,这篇文章中我们有所提到:【OpenGL】25-碰撞检测 。这篇文章则是实际运用这个来实现游戏逻辑。

阅读全文 »
1…222324…46
KsGin

KsGin

游戏程序员/计算机图形学/Unity/西山居搬砖

226 日志
16 标签
GitHub E-Mail Google Twitter
© 2018 KsGin @ 2018
0%