[Android] Identifiant VBO, Shader et Program
Bonjour,
Je teste depuis peu la plateforme Android puisque je viens d'acquérir un smartphone sous cet OS. Je me fais un petit projet OpenGL ES tout simple pour commencer (affichage d'un cube). Seulement voilà quand je fais appel aux fonctions glGenBuffers, glCreateProgram ou glCreateShader, ces fonctions me retourne un identifiant valant 0 ce qui signifie une erreur (je n'ai pas testé autre chose pour le moment)
Voici le contenu de mon fichier AndroidManifest.xml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.lemon.engine"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="15" />
<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:hardwareAccelerated="true">
<activity
android:name="com.lemon.main.MainActivity"
android:label="@string/title_activity_main" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest> |
Kromagg