Skip to content

egslava/android-nanovg-sample

Repository files navigation

Announcement: let's travel the world! or let's just be guests :)

Android nanovg via NDK samlple

Ru

Этот проект - тестовое задание и представляет собой пример инициализации и использования nanovg через NDK (JNI). Он базируется на примере из Google Samples, но:

  1. Использует nanovg для вывода треугольника.
  2. Не использует шейдеры.
  3. Представляет вывод OpenGL-графики как компонент.

Пример демонстрирует интеграцию OpenGL компонента через GLSurfaceView в обычное Android-приложение, показывая недостатки этого и повествуя о недостатках других способов, обрабатывая жесты способами, предоставленными Android SDK, а также применяя трасформации вручную (а не через вершинный шейдер).

Eng

It's a program for my job application, so it's tiny. The program - is an example of initialization and using nanovg через NDK (JNI). Generally, it's based on Google Samples app, but:

  1. It's using nanovg for triangle rendering.
  2. It doesn't use shaders.
  3. It's tries to show GL graphics as an Android component.

App demonstrates OpenGL integration as a GLSurfaceView-component into a casual Android app. It shows disatvantages of this and tells about disatvantages of other methods. For gesture processing it uses Android SDK way, and applies transformations manually (without using vertex shader).


Announcement: let's travel the world! or let's just be guests :)

Drawing

License

Copyright 2015 Google, Inc.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

The example of integration of nano-vg library to Android projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published