• Skip to main content
  • Skip to primary sidebar

Anastasios Chondrogiannis

Software developer with a focus on iOS

Android Development

Android OpenGL ES – Part 4: Indexed Drawing

March 6, 2020 by Anastasios Chondrogiannis Leave a Comment

1. Visualize interpolation

  • Open the main.cpp file.
  • Modify the vertex shader source code as follows:
[Read more…] about Android OpenGL ES – Part 4: Indexed Drawing

Filed Under: Android Development

Android OpenGL ES – Part 3: Transformations

March 5, 2020 by Anastasios Chondrogiannis Leave a Comment

1. Link the GLM Library

  • Click here and download the GLM library. I used version 0.9.9.7.
  • Unzip the file you downloaded.
  • Inside the unzipped folder you will find a subfolder named glm. Move this folder into your project’s cpp folder:
    • Open the Project pane from the left side of the IDE.
    • Select the Project view.
    • Navigate to app->src->main.
    • Drag and drop the glm folder onto the cpp folder and click OK.
  • Open the CMakeLists.txt file.
  • Make the following changes:
[Read more…] about Android OpenGL ES – Part 3: Transformations

Filed Under: Android Development

Android OpenGL ES – Part 2: Triangle

February 21, 2020 by Anastasios Chondrogiannis Leave a Comment

1. Link the log library

  • Open the CMakeLists.txt file.
  • Make the following changes:
cmake_minimum_required(VERSION 3.6.0)

add_library(native-library SHARED main.cpp)

find_library(opengl-lib GLESv3)
find_library(log-lib log)

target_link_libraries(native-library ${opengl-lib} ${log-lib})
  • Save the file and click Sync Now.
[Read more…] about Android OpenGL ES – Part 2: Triangle

Filed Under: Android Development

Android OpenGL ES – Part 1: Basic Setup

February 14, 2020 by Anastasios Chondrogiannis Leave a Comment

1. Create a new Android Project with C/C++ support

In order to create a new Android project with C/C++ support, click here and follow the instructions.

The only difference is that you will use a different API level:

Minimum API level: API 21: Android 5.0 (Lollipop)

[Read more…] about Android OpenGL ES – Part 1: Basic Setup

Filed Under: Android Development

Add C/C++ to your Android project

February 13, 2020 by Anastasios Chondrogiannis Leave a Comment

1. Create a new Project

  • Open Android Studio (I’m using version 3.5.3).
  • Click Start a new Android Studio Project.
  • Under the Phone and Tablet tab select Add No Activity and click Next.
  • Fill in the following information:
    • Language: Kotlin
    • Minimum API level: API 16: Android 4.1 (Jelly Bean)
    • This project will support instant apps: Leave it unchecked
    • Use androidx.* artifacts: Leave it checked
  • Choose your own Name, Package name and Save location.
  • Click Finish.
[Read more…] about Add C/C++ to your Android project

Filed Under: Android Development

Android DrawerLayout with NavigationView

July 15, 2019 by Anastasios Chondrogiannis Leave a Comment

1. Setup a new project

  1. Open Android Studio.
  2. Select File -> New -> New Project…
  3. In the Create New Project dialog select Empty Activity from the Phone and Tablet tab and click Next.
  4. Make the following selections and click Finish:
    • Name: Pick a name
    • Package name: Pick a package name
    • Save location: Pick a folder
    • Language: Kotlin
    • Minimum API level: API 19: Android 4.4 (KitKat)
    • Leave This project will support instant apps unchecked.
    • Check Use androidx.* artifacts.
[Read more…] about Android DrawerLayout with NavigationView

Filed Under: Android Development Tagged With: DrawerLayout, NavigationView

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2

Primary Sidebar

Let’s connect!

  • Facebook
  • Instagram
  • LinkedIn
  • Twitter

Recent Posts

  • Android OpenGL ES – Part 10: Specular lighting
  • Android OpenGL ES – Part 9: Diffuse lighting
  • Android OpenGL ES – Part 8: Ambient Lighting
  • Android OpenGL ES – Part 7: Textures
  • Android OpenGL ES – Part 6: Camera View

Archives

  • March 2020
  • February 2020
  • November 2019
  • October 2019
  • July 2019

Categories

  • Android Development
  • Machine Learning

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in