- 博客(5)
- 资源 (14)
- 收藏
- 关注
原创 cocos2d-js h5横竖屏切换的一种实现方案
主要思路根据屏幕方向来对场景进行旋转技术点对屏幕方向进行监听const PORTRAIT = 0;const LANDSCAPE = 1;window.addEventListener("orientationchange", function(event) { if(window.orientation == 180 || window.orientation == 0) {
2017-10-31 16:42:00 2758
原创 sublime text3配置PyQt5开发环境
安装python3配置好python环境变量打开sublime text3,在菜单栏选择Tools->Build System->New Build System 输入如下内容{ "shell_cmd": "start python3 \"$file\"", "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "
2017-10-23 22:31:26 4616
原创 二分查找
#define ID_INLINE inline// 查找小于value的元素中最大的元素的索引// array是已经按增序排列好的数组/*====================idBinSearch_GreaterEqual Finds the last array element which is smaller than the given value.==========
2017-10-11 17:06:00 163
原创 assert_enum_string
枚举转字符串#include <iostream>using namespace std;enum gameDialogMessages_t { GDM_INVALID, GDM_SWAP_DISKS_TO1, GDM_SWAP_DISKS_TO2, GDM_SWAP_DISKS_TO3, GDM_MAX // GDM_MAX + 1就表示枚举的长度};
2017-10-11 16:16:42 265
原创 COM接口使用简单实现
#include <iostream>using namespace std;// 定义接口关键之#define interface struct// 查询接口#define QUERYINTERFACE(Interface, iid) \ if(iid == IID_##Interface) \ return static_cast<Interface *>(this
2017-10-11 16:04:13 1771 4
FFmpeg for Unity 2.6
2023-04-14
WebGLInspector.7z
2020-04-17
JavaScript设计模式与开发实践
2016-09-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人