- 博客(18)
- 资源 (9)
- 收藏
- 关注
原创 OpenNI优化,发布精简
github下在openni代码XnStatus xnGetOpenNIConfFilesPath(XnChar* strDest, XnUInt32 nBufSize){ XnStatus nRetVal = XN_STATUS_OK; #if XN_PLATFORM == XN_PLATFORM_ANDROID_ARM xnOSGetApplicationFilesDir(
2016-10-27 18:54:18
427
原创 Unity3D工程在Android解决关闭屏保
//获取权限 //java实现 在OnCreate中调用,getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); //Unity C#实现 public static AndroidJavaObject Activity { get { AndroidJavaClass jcPlay
2016-07-21 15:34:11
1714
原创 Unity 画图效果
using UnityEngine;using System.Collections;using System;using System.Collections.Generic;using System.Linq;using System.IO;public class Painting : MonoBehaviour { private RenderTexture texRen
2015-11-18 16:19:20
10650
3
原创 javah 使用方法 jni
eclipse的src目录下输入javah -classpath ../bin/classes -d ../jni -jni com.niengine.NIActivity在src上级目录输入javah -classpath bin/classes -d jni -jni com.niengine.NIActivity
2015-09-14 17:12:29
523
原创 遥控器输入子系统事件
遥控器上EV_MSC MSC_SCAN 00070052EV_KEY KEY_UP DOWNEV_SYN SYN_REPORT 00000000EV_MSC MSC_SCAN 00070052EV_KEY KEY_UP UPEV_SYN SYN_REPORT 00000000下EV_MSC MSC_SCAN 00070051EV_KEY
2015-08-26 14:47:46
2212
原创 手柄输入子系统事件
上EV_ABS ABS_HATOY FFFFFFFFEV_SYN SYN_REPORT 00000000EV_ABS ABS_HATOY 00000000EV_SYN SYN_REPORT 00000000下EV_ABS ABS_HATOY 00000001EV_SYN SYN_REPORT 00000000EV_ABS ABS_
2015-08-26 14:26:14
738
原创 (记录)机顶盒手柄对应键值
键 值 返回 KeyCodeL1 102 KEYCODE_BUTTON_L1R1 103 KEYCODE_BUTTON_R1up 19 KEYCODE_DPAD_UPdown 20 KEYCODE_DPAD_DOWNleft 21 KEYCODE_DPAD_LEFTright 22 KEYCODE_DPAD_RIGHTback 4 re
2015-07-23 19:40:18
2768
原创 windows编译/调试ffmpeg vs2013编译/调试ffmpeg win7 64位
1.下载MinGW,下载到C:/MinGW下http://sourceforge.net/projects/mingw/files/Installer/
2014-10-12 00:53:56
9439
1
原创 Unity3D Android Java常用类
/** * AndroidJava常用类 * */public class AndroidJavaUtil { public static string LauncherPkgName = "com.hdlz.HeyHaLauncher"; public static AndroidJavaObject Activity { get { AndroidJavaCl
2014-09-02 10:40:49
3046
原创 Unity android 目录
#if UNITY_EDITOR string filepath = Application.dataPath +"/StreamingAssets"+"/my.xml";#elif UNITY_IPHONE string filepath = Application.dataPath +"/Raw"+"/my.xml";#elif UNITY_ANDROID string
2014-06-10 17:01:55
1006
原创 C# 拆分 合并 数组
//拆分任意类型数组 List SplitArray(T[] data, int size) { List list = new List(); for (int i = 0; i < data.Length / size; i++) { T[] r = new T[size]; Array.Copy
2014-06-10 16:26:16
5888
1
原创 Face++ C++ curl跨平台HttpClient
#ifndef __HTTP_CURL_H__#define __HTTP_CURL_H__#include #include class HttpClient{public: HttpClient(void); ~HttpClient(void);public: /** * @brief HTTP POST请求 * @param strUrl 输入参数,请求的Ur
2014-06-07 11:29:39
5469
1
原创 Unity3D 集成 Face++ FacePlusPlus httpClient http协议 byte数组转string
public float fWaitProgress = 0; public string strResult = ""; public bool bWaitResult = false; public bool IsWait() { return bWaitResult; } public void Reset() { bWaitResult = true;
2014-06-07 10:48:01
3905
1
原创 画Bits到DC上,HDC缓存
画Bits到DC上,HDC缓存void DrawBits(HWND hWnd,BYTE* pBits){ RECT rc; ::GetClientRect(hWnd,&rc); int nWidth = rc.right - rc.left; int nHeight = rc.bottom - rc.top; HDC hDC = ::GetDC(hWnd);
2014-05-29 21:38:18
1134
转载 android 开机自动启动 | 开机自启
package com.hdlz.XXX;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;import android.content.pm.PackageManager;import android.widget.Toast;
2014-05-05 13:12:59
1175
原创 Unity android 读取文件,读取APK包文件
#if UNITY_ANDROIDA IEnumerator Start() { string fullName = "jar:file://" + Application.dataPath + "!/assets/test.txt"; WWW www = new WWW(fullName); yield return www; //加载完成后处理,有点delay pri
2014-05-05 10:07:51
9074
1
原创 UNITY3D android 启动其他程序,启动apk C#代码
void openPackage(string pkgName) { using (AndroidJavaClass jcPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) { using (AndroidJavaObject joActivity
2014-05-05 09:49:04
8660
1
原创 拆分Cocos2D-Xplist中的所有图片另存为单张png
//1.在Init里调用定时器(因为cocos autorelease 不是马上释放内存,如果一次性图片太多会导致程序内存不够用)this->schedule(schedule_selector(HelloWorld::update),0.5f);//2.定时调用分解void HelloWorld::update(float f){splitPlist();}void HelloWorld::sp
2013-12-04 17:57:18
2659
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人