You are on page 1of 18

.

.

DirectX ->,iOS .


Conculion


OS
OpenGL ES
OpenGL
PowerVR

Q/A

.
.

.
. (,iOS)

Why.
.
.
.

.
.
.
.

.
Open-gl 2.0 .
.
.

.
- OS.
OS

OS

C/C++

&

iOS

Mac OS

Objective-C

OpenGL ES

Java

O(JNI)

OpenGL ES

MSWindow

C# (XNA)

X (???)

?,DirectX

Ubuntu

C++

,
APP
OpenGL ES

.
Open-GL ES
OpenGL ES ( OpenGL) 3
API OpenGL , , PDA
API

Open-GL ES 1.1
Fixed function. (Dx7 )

Open-GL ES 2.0 (Dx8~DX9 )


Shader. ES1.1 API . .

Open-GL ES 3.0
ES2.0 + API

(DX9~DX10 )

Open-GL

By Khronos Group

.
PowerVR(50%GPU.)
5 (SGX)
PowerVR 5 SGX , , , OpenGL ES 2.0 DirectX 10.1,
4.1 .
SGX GPU SoC . PowerVR SoC A4, TI OMAP 3 4,
. SGX540 . (: )

(mm2)[
1]

(@ 200 MHz)

[2]

MTriangles/s[1]

MPixel/s[1]

API ()

()

DirectX

OpenGL

OpenGL ES

GFLOPS(@ 20
0 MHz)

SGX520

2005 7

2.6@65 nm

1/1

250

64

N/A

N/A

2.0

0.8

SGX530

2005 7

7.2@65 nm

2/1

14

500

64

N/A

N/A

2.0

1.6

SGX531

2006 10

65 nm

2/1

14

500

64

N/A

N/A

2.0

1.6

SGX535

2007 11

65 nm

2/2

14

500

64

9.0L

2.1

2.0

1.6

SGX540

2007 11

65 nm

4/2

20

1000

64

N/A

N/A

2.0

3.2

SGX545

2010 1

12.5@65 nm

4/2

40

1000

64

10.1

3.2

2.0

7.2

5XT (SGXMP)
PowerVR 5XT SGXMP SGX .
PowerVR SGX543(MP4+) . MP4 . MP4
, MP8 . A5 2 4S SGX543MP2
. 3 MP4 . (: ) ( S4 544MP3)

(mm
2)[1]


[3]

(@ 200 MHz)
MTriangles
/s[1]

MPixel/s[1]

(
)

API ()
DirectX

OpenGL

OpenCL

GFLOPS(@
200 MHz,
)

SGX543

2009 1

1-16

8@45/32 nm

4/2

35

1000

64

9.0L

2.1

1.0

7.2

SGX544

2010 6

1-16

8@45/32 nm

4/2

35

1000

64

9.0

2.1

1.1

6.4

SGX554

2010 12

1-16

8/2

35

1000

64

9.0

2.1

1.1

OpenCL (Open Computing Language)

.
.
APP .
Base .(
)
PC .
PowerVR SDK 3.1. (OpenGL
ES1,2,3)
C/C++ .

.
Java, Android SDK, NDK, Cywin .

.

1.
2.
3.

DirectX . Shader.
Open-GL. Shader.
.

Open-GL ES20 .
.

.
DirectX ->,iOS .

DX ->Open-GL.
Window-OS .
.

#ifdef .
.
API . #ifdef .

.
.

#include <windows.h> #include "Gf_Os.h".


stl Stlport . include stl
. .
BYTE ,WORD,LONG,BOOL, define .
window api . StringCchPrintf,wsprintf,wvsprintf
standard c/c++. jni #ifdef
strnicmp -> strncmp . strspy_s .
tchar.h . . TCHAR wchar_t .
<wchar.h> .
jni wchar_t 4byte. .
wcslwr strlwr .
GetPrivateProfileString . Gf_GetPrivateProfileString
.
. FNQUERYPERFORMANCEFREQUENCY -> clock_gettime() 10->1
.
Math Vector Matrix .
max, min Gf_min,Gf_max define.

ANCI C char .

jvm.dll (of jre 1.3) -> . .


.

UTF8

strnicmp -> strncmp


strspy_s .
_wfopen . wcscpy() .

: (Unicode)
JNI : UTF-8
C/C++ : ( ) KSC5601

EUC-KR = KSC5601() + KSC5636() Window,Mac OS


,1~4 encode.
. 2Byte or 4Byte OS .

* char(X,
X, .)
* UTF-8 , , .

.
I/O .
fopen() .
\(Only Windows) /
(iOS,Android,Windows)
iOS documentsDirectory/../.app ch_dir
.
Android zip assest
access. fopen fread
callback . Scanf .
.
iOS,Android Write App Cache
App .

.

APK

. ->

.
Apk.
.
up.

.

.
Open-gl
iOS .

DX->Open-GL. (#define )
.
.
.
. (LOGI,LOGE)
.
.
.
.

conclusion

.
.

conclusion
.

. X.
.
PC/ .
.
.

Q/A

VR http://ko.wikipedia.org/wiki/PowerVR
OpenGL http://en.wikipedia.org/wiki/OpenGL
OpenGLES http://en.wikipedia.org/wiki/OpenGLES
OpenCL http://en.wikipedia.org/wiki/Opencl
,,UTF-8 .
http://roughexistence.tistory.com/81
jni.
http://blog.naver.com/PostView.nhn?blogId=iflowerpot&logNo=8
0120623646
NDK Build Visual Studio
http://blog.deneb.kr/archives/60
VS jni .
http://blog.kaludin.com/2658083