Android Example OpenGL ES - NeHe sample projects

Attached sample project is a wrap for this Github Project.

Attached are the following:

1. NeheLesson09.zip - it contains the library files (Jar and XML). Copy the Jar and XML to your additional library folder once you have extracted the files from the zip file. It also contains the sample B4A project (note that folder demoRes should be on the same folder level as the /Files and /Objects folders of the B4A project.
2. srcLesson09.zip - the wrapper and the project that has been wrapped (the Java code)

The sample code is very simple:

B4A Sample Code:
#Region  Project Attributes
    #ApplicationLabel: b4aNeHeLesson09
    #VersionCode: 1
    #VersionName:
    'SupportedOrientations possible values: unspecified, landscape or portrait.
    #SupportedOrientations: unspecified
    #CanInstallToExternalStorage: False
#End Region

#AdditionalRes: ..\demoRes

#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: True
#End Region

Sub Process_Globals
    'These global variables will be declared once when the application starts.
    'These variables can be accessed from all modules.
    Private xui As XUI
End Sub

Sub Globals
    'These global variables will be redeclared each time the activity is created.

    Private l09 As Lesson09

End Sub

Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("Layout")
End Sub

Sub Activity_Resume
   
    l09.RESUME


End Sub

Sub Activity_Pause (UserClosed As Boolean)
   
    l09.PAUSE


End Sub

Designer code:
Designer Code:
'All variants script
AutoScaleAll

l09.Left = 1%x
l09.Top = 1%x
l09.Width = 98%x
l09.Height = l09.Width

A nice display of colorful "rotating" starts - enjoy!

Touch the very left and very right bottom corners of the view and see the display of the stars changing....

No plan to support this project - change the Java code to your liking to do whatever you want it to do.

I will post more projects in this thread for some of the other "NeHe Lessons"


lesson09.png
 

Attachments

  • srcLesson09.zip
    8 KB · Views: 328
  • NeheLesson09.zip
    21.7 KB · Views: 346
Last edited:

Johan Schoeman

Expert
Licensed User
Longtime User
A wrap for this Github Project

Follow instructions in post #1

Click on the bottom left and bottom right of the "crate" view and see the changes.
Drag from top left to top right (and vice versa) to zoom in/out.

Drag on the view (up/down and left/right) to rotate the "crate" cube.

Enjoy!



Lesson07.png
 

Attachments

  • NeheLesson07.zip
    66.7 KB · Views: 244
  • srcLesson07.zip
    8.9 KB · Views: 233
Last edited:

Johan Schoeman

Expert
Licensed User
Longtime User
A wrap for this Github Project.

Follow instructions in post #1

Click on the bottom left and bottom right of the "glass" view and see the changes.
Drag from top left to top right (and vice versa) to zoom in/out.

Drag on the view (up/down and left/right) to rotate the "glass" cube.

Lesson08.png
 

Attachments

  • NeHeLesson08.zip
    285.5 KB · Views: 227
  • srcLesson08.zip
    8.9 KB · Views: 209
Last edited:

Johan Schoeman

Expert
Licensed User
Longtime User
A wrap for this Github Project. - It is as clear as a crate covered in fog


Follow instructions in post #1

Click on the bottom left and bottom right of the "crate" view and see the changes.
Drag from top left to top right (and vice versa) to zoom in/out.

Drag on the view (up/down and left/right) to rotate the "crate" cube.


Lesson16.png
 

Attachments

  • NeheLesson16.zip
    257.6 KB · Views: 240
  • srcLesson16.zip
    9.3 KB · Views: 230
Last edited:
Top