andengine - error method of getConfigChooserOptions -
i using andengine , box2d in eclipse. utilize andengine gles2 anchorcenter.
public engineoptions oncreateengineoptions() { engineoptions engineoptions = new engineoptions(true, screenorientation.landscape_sensor, new fillresolutionpolicy(), new camera(0, 0, camerawidth, cameraheight)); engineoptions.getrenderoptions().setdithering(true); engineoptions.getrenderoptions().getconfigchooseroptions().setrequestedmultisampling(true); engineoptions.setwakelockoptions(wakelockoptions.screen_on); homecoming engineoptions;
the problem error getconfigchooseroptions()
, have create method or add together cast method receiver. tried looking reply , said andengine gles2 branch doesn't have method , found in andengine gles2 anchorcenter. utilize anchorcenter already. have create method? did reimport andengine gles2 anchorcenter, error have add together cast method receiver. how solve problem?
the reply have found correct. method available in gles2 anchorcenter branch , works out of box. though believe using anchorcenter branch, seems not.
here's renderoptions
class in gles2:
https://github.com/nicolasgramlich/andengine/blob/gles2/src/org/andengine/engine/options/renderoptions.java
and here's same class in anchorcenter branch:
https://github.com/nicolasgramlich/andengine/blob/gles2/src/org/andengine/engine/options/renderoptions.java
make sure using right branch github , not outdated jar. code doesn't contain extension, basic project should fine.
follow this tutorial when in doubt.
methods andengine config options
No comments:
Post a Comment