• Skip to main content
  • Skip to primary sidebar

Anastasios Chondrogiannis

Software developer with a focus on iOS

Archives for February 2020

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

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