public void onSurfaceCreated(GL10 unused, EGLConfig config) { Logger.Info("Setting up GLES..."); __setup_gles(); __load_internal_resources(); __setup_matrices(); // After all this, the game is initialized. So we can call the on_game_loaded. Logger.Info("Engine ready."); m_activity.on_game_start(); }
private void __load_internal_resources() { m_default_shader = ResourceManager.load_shader("shaders/default"); if (m_default_shader == null) { Logger.Error("Default shader could not be loaded. Rendering may not work."); } m_active_shader = m_default_shader; }