前言
这篇文章开始不再以教程中的框架代码为示例,因为我发现本身在学习 DirectX 基本语法当中,多写几遍能加深印象是其一,其二是对那些 API 理解并非太深刻的时候实现较为复杂的内容的时候会导致难以去 Debug ,同时也丧失了基本的学习效果。
前置内容
我们使用我们之前做过的简单的三角形那个例子,将其代码拷贝过来(再写一遍最好,虽然说写重复代码比较愚蠢,但是蠢有蠢的好处),用来实现这篇文章要实现的内容。
我们这篇文章将学习纹理的用法,之后在我们之前的纯色三角形上贴一张好看图片
你想开发游戏还是改变世界?
LeetCode#674 Longest Continuous Increasing Subsequence
Given an unsorted array of integers, find the length of longest continuous
increasing subsequence (subarray).
LeetCode#102 Binary Tree Level Order Traversal
Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level).