Exemplo n.º 1
0
void OSystem_Android::initSurface() {
	LOGD("initializing surface");

	assert(!JNI::haveSurface());

	_screen_changeid = JNI::surface_changeid;
	_egl_surface_width = JNI::egl_surface_width;
	_egl_surface_height = JNI::egl_surface_height;

	assert(_egl_surface_width > 0 && _egl_surface_height > 0);

	JNI::initSurface();

	// Initialize OpenGLES context.
	Graphics::initExtensions();
	logExtensions();
	GLESTexture::initGL();

	if (_game_texture)
		_game_texture->reinit();

	if (_overlay_texture) {
		_overlay_texture->reinit();
		initOverlay();
	}

	if (_mouse_texture)
		_mouse_texture->reinit();
}
Exemplo n.º 2
0
void HudSchedulerMenu::init()
{
    
    alloc();
    initOverlay();
    showOverlays();
    std::cout << "Man RecessEnabled,Count,limie " <<globals.manRecessEnabled << " " <<globals.manRecessCount << " "<< globals.manRecessLevelLimit <<std::endl;
}
VoronoiCellGraph3x3::VoronoiCellGraph3x3(Image* pixelArt, GLenum* DrawBuffers, SimilarityGraphBuilderFS* simGraph) {
    m_pixelArtImage = pixelArt;
    m_DrawBuffers = DrawBuffers;
    m_simGraph = simGraph;
    setZoom(1.0f, 0.5f, 0.5f);
    init();
    initOverlay();
}
Exemplo n.º 4
0
void OSystem_Android::initBackend() {
	ENTER();

	_main_thread = pthread_self();

	ConfMan.registerDefault("fullscreen", true);
	ConfMan.registerDefault("aspect_ratio", true);
	ConfMan.registerDefault("touchpad_mouse_mode", true);

	ConfMan.setInt("autosave_period", 0);
	ConfMan.setBool("FM_high_quality", false);
	ConfMan.setBool("FM_medium_quality", true);

	if (ConfMan.hasKey("touchpad_mouse_mode"))
		_touchpad_mode = ConfMan.getBool("touchpad_mouse_mode");
	else
		ConfMan.setBool("touchpad_mouse_mode", true);

	// must happen before creating TimerManager to avoid race in
	// creating EventManager
	setupKeymapper();

	// BUG: "transient" ConfMan settings get nuked by the options
	// screen. Passing the savepath in this way makes it stick
	// (via ConfMan.registerDefault)
	_savefileManager = new DefaultSaveFileManager(ConfMan.get("savepath"));
	_timerManager = new DefaultTimerManager();

	gettimeofday(&_startTime, 0);

	_mixer = new Audio::MixerImpl(this, _audio_sample_rate);
	_mixer->setReady(true);

	_timer_thread_exit = false;
	pthread_create(&_timer_thread, 0, timerThreadFunc, this);

	_audio_thread_exit = false;
	pthread_create(&_audio_thread, 0, audioThreadFunc, this);

	initSurface();
	initViewport();

	_game_texture = new GLESFakePalette565Texture();
	_overlay_texture = new GLES4444Texture();
	_mouse_texture_palette = new GLESFakePalette5551Texture();
	_mouse_texture = _mouse_texture_palette;

	initOverlay();

	// renice this thread to boost the audio thread
	if (setpriority(PRIO_PROCESS, 0, 19) < 0)
		warning("couldn't renice the main thread");

	JNI::setReadyForEvents(true);

	EventsBaseBackend::initBackend();
}
Exemplo n.º 5
0
void HudSchedulerMenu::adjust()
{
    initOverlay();
    player->getTutorialMgr()->adjust();
}
Exemplo n.º 6
0
void HudControlSettings::adjust()
{
    initOverlay();
    player->getTutorialMgr()->adjust();
}
Exemplo n.º 7
0
void HudControlSettings::init()
{
    alloc();
    initOverlay();
    showOverlays();
}
Exemplo n.º 8
0
void HudStage::adjust()
{
    initOverlay();
    player->getTutorialMgr()->adjust();
}
Exemplo n.º 9
0
void HudStage::init()
{
    alloc();
    initOverlay();
}
Exemplo n.º 10
0
void ofxLayerMask::setOverlayThumbSize(int _thumbSize) {
    thumbSize = _thumbSize;
    initOverlay();
}