Skip to content

set empty Gdx.* fields and made get[Component]() methods work in headless backend#2316

Merged
MobiDevelop merged 1 commit intolibgdx:masterfrom
dermetfan:master
Sep 9, 2014
Merged

set empty Gdx.* fields and made get[Component]() methods work in headless backend#2316
MobiDevelop merged 1 commit intolibgdx:masterfrom
dermetfan:master

Conversation

@dermetfan
Copy link
Contributor

HeadlessApplication#get[Input/Graphics/Audio]() returned null even though HeadlessApplication had corresponding mock implementations.
Correct me if I'm wrong, but I guess this was because the getters were forgotten when those mock implementations were added.

I don't think they returned null intentionally because the Gdx.[audio/graphics] fields were set (Gdx.input wasn't though, so it seems it was forgotten as well).

HeadlessApplication#get[Input/Graphics/Audio]() returned null even though HeadlessApplication had mock implementations. Correct me if I'm wrong, but I guess this was because the getters were forgotten when those mock implementations were added. I don't think they returned null intentionally because the Gdx.[audio/graphics] fields were set (Gdx.input not though, so it seems it was forgotten as well).
@dermetfan dermetfan changed the title set empty Gdx.* fields and made get[Component]() methods work set empty Gdx.* fields and made get[Component]() methods work in headless backend Sep 9, 2014
@MobiDevelop
Copy link
Member

Seems reasonable. Thanks.

MobiDevelop added a commit that referenced this pull request Sep 9, 2014
set empty Gdx.* fields and made get[Component]() methods work in headless backend
@MobiDevelop MobiDevelop merged commit e6cd3e9 into libgdx:master Sep 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants