Class OgreQuery

  • All Implemented Interfaces:
    be.yildizgames.common.jni.Native, be.yildizgames.module.graphic.query.Query

    public final class OgreQuery
    extends Object
    implements be.yildizgames.module.graphic.query.Query, be.yildizgames.common.jni.Native
    Ogre implementation for a Query.
    Author:
    Grégory Van den Borre
    • Constructor Detail

      • OgreQuery

        public OgreQuery​(be.yildizgames.common.jni.NativePointer pointer,
                         float resolutionX,
                         float resolutionY)
    • Method Detail

      • getEntity

        public Optional<be.yildizgames.common.model.EntityId> getEntity​(float x,
                                                                        float y)
        Specified by:
        getEntity in interface be.yildizgames.module.graphic.query.Query
      • getEntities

        public List<be.yildizgames.common.model.EntityId> getEntities​(be.yildizgames.common.geometry.Rectangle rectangle)
        Specified by:
        getEntities in interface be.yildizgames.module.graphic.query.Query
      • delete

        public void delete()
        Specified by:
        delete in interface be.yildizgames.common.jni.Native
      • getPointer

        public be.yildizgames.common.jni.NativePointer getPointer()
        Specified by:
        getPointer in interface be.yildizgames.common.jni.Native