Vulkan

上一页 1 2 3 4 5 6 ··· 27 下一页

2017年7月23日

透视除法,其次坐标,投影

摘要: 原文:Explaining Homogeneous Coordinates & Projective Geometryhttp://www.jianshu.com/p/7e701d7bfd793D投影图片来源:Joachim Baecker.术语在大多数3D工作中,我们参照的依据是欧几里得几何学中的... 阅读全文

posted @ 2017-07-23 15:23 Vulkan 阅读(534) 评论(0) 推荐(0) 编辑

2017年7月5日

STL的内存管理

摘要: SGI STL 的内存管理http://www.cnblogs.com/sld666666/archive/2010/07/01/1769448.html1. 好多废话 在分析完nginx的内存池之后,也想了解一下C++的内存管理,于是就很自然得想到STL。STL是一个重量级的作品,据说当时的... 阅读全文

posted @ 2017-07-05 18:03 Vulkan 阅读(1091) 评论(0) 推荐(1) 编辑

2017年7月4日

C++中模板的特化与偏特化

摘要: 1.引言C++中的模板分为类模板和函数模板,虽然它引进到C++标准中的时间不是很长,但是却得到了广泛的应用,这一点在STL中有着充分的体现。目前,STL在C++社区中得到了广泛的关注、应用和研究。理解和掌握模板是学习、应用和研究以及扩充STL的基础。而STL模板实例中又充斥着大量的模板特化和偏特化。... 阅读全文

posted @ 2017-07-04 15:36 Vulkan 阅读(264) 评论(0) 推荐(0) 编辑

STL源码剖析01-allocator

摘要: #include #include #include #include using namespace std;template inline T* _allocator(ptrdiff_t size, T*){ std::coutinline void _deallocator(T * buffe... 阅读全文

posted @ 2017-07-04 14:55 Vulkan 阅读(116) 评论(0) 推荐(0) 编辑

2017年6月27日

一个简易的allocator

摘要: #include #include #include using namespace::std; template class malloc_allocator{public: typedef T value_type; typedef value_type* pointer... 阅读全文

posted @ 2017-06-27 18:11 Vulkan 阅读(94) 评论(0) 推荐(0) 编辑

2017年6月23日

C++ allocator

摘要: C++ allocatorhttp://www.cnblogs.com/wpcockroach/archive/2012/05/10/2493564.html说一说C++里的allocator。我们知道,C++ STL里定义了很多的容器(containers),每一个容器的第二个模板参数都是allo... 阅读全文

posted @ 2017-06-23 16:17 Vulkan 阅读(195) 评论(0) 推荐(0) 编辑

2017年6月21日

记录

摘要: http://www.cnblogs.com/FuTaimeng/p/5572183.htmlhttp://www.cnblogs.com/FuTaimeng/p/5572186.htmlhttp://www.cnblogs.com/FuTaimeng/p/5572190.html 阅读全文

posted @ 2017-06-21 15:22 Vulkan 阅读(59) 评论(0) 推荐(0) 编辑

2017年6月11日

一个神奇的???whatever~~

摘要: 一个神奇的类,用来封装消息数据,统一数据传递接口,从unity引擎源码拷贝而来。#include #include #include struct MessageData{ int type;private: // Note: on Metro WinRT types cannot be locat... 阅读全文

posted @ 2017-06-11 11:16 Vulkan 阅读(91) 评论(0) 推荐(0) 编辑

2016年11月17日

射线与球体相交检测

摘要: 原理:参照实时碰撞检测算法技术上的原理;但书上的实现有问题。重新实现如下:C++实现: static bool getRaySphereIntersect(vector3d rayOrigin, vector3d rayDir, vector3d sphereCen... 阅读全文

posted @ 2016-11-17 20:19 Vulkan 阅读(231) 评论(0) 推荐(0) 编辑

2016年8月31日

ZXX43大神实现的软渲染

摘要: https://github.com/zxx43/Software-Renderhttp://blog.csdn.net/zxx43/article/details/46755247http://tieba.baidu.com/p/4039850376?pid=75736127923&cid=0#7... 阅读全文

posted @ 2016-08-31 16:43 Vulkan 阅读(234) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 27 下一页

导航