自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(28)
  • 收藏
  • 关注

原创 Fractal Theory/分型

Koch 曲线KochSnowGif16_800x500_2

2018-12-18 10:51:22 262

原创 declaration in header

header.h#pragma oncenamespace std{ template<typename T> class shared_ptr;}class TestClass {};typedef class std::shared_ptr<TestClass> TestClassPtr;void FuncParameterRef(Test...

2018-11-29 11:03:46 249

原创 KeyBoardEvent

reference: js中获取键盘事件 - https://www.cnblogs.com/jiangxiaobo/p/5953863.html<STYLE TYPE="text/css"> TD {text-align:center} </STYLE> <SCRIPT LANGUAGE="JavaScript"> function init() {...

2018-10-29 15:12:48 832

原创 Compile Errors

错误代码:struct MyInt{ MyInt() :mData(0) {} MyInt(int data) : mData(data) {} operator int() { return mData; } int mData;}; int main(){ bool bFlag = false; int aa = bFlag ? ...

2018-10-27 17:23:12 291

原创 DataContaine Clear

std::vector::clearClear contentRemoves all elements from the vector (which are destroyed), leaving the container with a size of 0.A reallocation is not guaranteed to happen, and the vector capacity...

2018-10-27 15:55:38 125

原创 Transforming Normal Vectors

Introduction to 3D Game Programming with DirectX 12 8.2.2 Transforming Normal Vectorsstatic XMMATRIX InverseTranspose(CXMMATRIX M){ XMMATRIX A = M; A.r[3] = XMVectorSet(0.0f, 0.0f...

2018-09-10 11:02:00 170

原创 vulkan & dx12

vulkan attribute per-instance

2017-11-24 14:16:27 815

原创 bias

mipLodBiasBias(偏差),Error(误差),和Variance(方差)-知乎

2017-07-31 10:48:38 222

转载 千分位显示整数

千分位显示整数

2017-05-31 13:42:41 873

原创 编译器警告C4930

std::istreambuf_iterator<char>

2017-02-14 14:48:03 352

原创 Tessellation Shader

Tessellation Control Shader(TCS): Tessellation Evaluation Shader(TES):Tessellation Shader的GLSL入门实现: 曲线 Tessellation Shader的GLSL入门实现: 平面 OpenGL的各个Shader的作用与区别

2017-01-05 17:10:50 562

原创 计算凸包算法

凸包

2016-11-01 18:49:30 333

转载 [转] malloc的内存分配之 malloc(0)的内存分配情况

malloc、malloc(0)

2016-11-01 14:55:14 398

原创 斐波那契数列

算法

2016-10-14 16:58:10 198

原创 virtual function table in c++

virtual functiton table

2016-10-13 19:42:59 757

原创 10000000 in 1

1e7 in 1

2016-10-13 17:58:25 232

原创 unnamed

something柔性数组 深入浅出C语言中的柔性数组 POD 平坦数据类型,专业的解释自行google

2016-09-13 10:34:46 784

转载 OpenGL图形管线和坐标变换

opengl

2016-08-12 15:25:33 363

原创 c++ 成员函数尾递归

#include <iostream>int factorial_tail(int n, int first, int second){ if (n == 1) { return second; } else { return factorial_tail(n - 1, second, first + second);

2016-06-08 15:14:10 730

原创 GetProcessMemoryInfo

GetProcessMemoryInfo

2016-06-06 16:13:48 772

原创 random

1.模拟一次随机事件:p = 0.7 if ((rand()%101)/100.0 <= 0.7) { //this random event happen }2.返回唯一半径为1的球面上的随机点 x = sin(alpha)cos(beta); y = sin(alpha)sin(beta); z = con(alpha); alpha [0,2PI) beta [0,2PI)

2016-05-07 09:56:06 256

原创 Mongo DB c++ 编译

下载python 2.7.11安装程序(不要使用3.X的版本), 使用32位,因为scons只有32位安装包可用;下载scons 2.3.4,MongoDB的驱动是用scons构建的,安装后会自动安装到python的脚本目录里。Python27\Scripts 添加到PATH中或者下载tar,到解压后的目录下面执行python setup.py installboost库MongoDB C+

2016-01-08 11:38:19 525

原创 Adaptive Communication Environment

http://www.oschina.net/news/50799/ace-6-2-5

2016-01-06 15:00:58 579

原创 MT、MTd、MD、MDd

在开发window程序是经常会遇到编译好好的程序拿到另一台机器上面无法运行的情况,这一般是由于另一台机器上面没有安装响应的运行时库导致的,那么这个与编译选项MT、MTd、MD、MDd有什么关系呢?这是msdn上面的解释:MT:mutithread,多线程库,编译器会从运行时库里面选择多线程静态连接库来解释程序中的代码,即连接LIBCMT.lib库MTd:mutithread+debug,多线程调试版

2016-01-01 17:15:30 931

原创 #pragma

pragma data_seg#include <stdio.h>#include <iostream>#pragma data_seg("flag_data") int app_count = 0;#pragma data_seg()#pragma comment(linker,"/SECTION:flag_data,RWS") struct ScopeAppCount

2015-12-18 17:45:40 349

原创 lua 编译

摘要怎么写呢,随便写点什么吧.lua

2015-12-17 20:23:03 674

原创 vs auto build

@echo off @echo 5秒钟后默认开始后台编译: @ping 127.0.0.1 -n 5 1>nul 2>nul @echo start::this is the comment %this is the comment% rem this is the comment echo this is the commentset VSInstall_route=C:\Progra

2015-12-17 19:15:41 306

原创 欢迎使用CSDN-markdown编辑器

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2015-12-17 19:11:48 141

空空如也

空空如也

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

TA关注的人

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