Fill minimap surface with tile color configuration.

@throws LionEngineException If surface has not been loaded ({@link #load()} may have not been called).
189928
@Override
    public void prepare()
    {
        if (surface == null)
        {
            throw new LionEngineException(ERROR_SURFACE);
        }
        final Graphic g = surface.createGraphic();
        final int v = map.getInTileHeight();
        final int h = map.getInTileWidth();

        for (int ty = 0; ty < v; ty++)
        {
            for (int tx = 0; tx < h; tx++)
            {
                final Tile tile = map.getTile(tx, ty);
                final ColorRgba color = getTileColor(tile);
                if (!NO_TILE.equals(color))
                {
                    g.setColor(color);
                    g.drawRect(tx, v - ty - 1, 1, 1, true);
                }
            }
        }
        g.dispose();
    }
1293848
public static final void draw(Shape shape, ShapeFill fill) {
        float points[] = shape.getPoints();
        
        Texture t = TextureImpl.getLastBind();
        TextureImpl.bindNone();

        float center[] = shape.getCenter();
        GL.glBegin(SGL.GL_LINE_STRIP);
        for(int i=0;i<points.length;i+=2) {
            fill.colorAt(shape, points[i], points[i + 1]).bind();
            Vector2f offset = fill.getOffsetAt(shape, points[i], points[i + 1]);
            GL.glVertex2f(points[i] + offset.x, points[i + 1] + offset.y);
        }
        
        if (shape.closed()) {
	        fill.colorAt(shape, points[0], points[1]).bind();
	        Vector2f offset = fill.getOffsetAt(shape, points[0], points[1]);
	        GL.glVertex2f(points[0] + offset.x, points[1] + offset.y);
        }
        GL.glEnd();
        
        if (t == null) {
        	TextureImpl.bindNone();
        } else {
        	t.bind();
        }
    }
314213
protected void setupForFill(final Pattern pPattern) {
        graphics.setPaint(pPattern);
        graphics.setComposite(getCompositeFor(QuickDraw.PAT_COPY));
    }
1261083
public static void initialize(
      Context context,
      @Nullable ImagePipelineConfig imagePipelineConfig,
      @Nullable DraweeConfig draweeConfig) {
    if (FrescoSystrace.isTracing()) {
      FrescoSystrace.beginSection("Fresco#initialize");
    }
    if (sIsInitialized) {
      FLog.w(
          TAG,
          "Fresco has already been initialized! `Fresco.initialize(...)` should only be called "
              + "1 single time to avoid memory leaks!");
    } else {
      sIsInitialized = true;
    }
    try {
      if (FrescoSystrace.isTracing()) {
        FrescoSystrace.beginSection("Fresco.initialize->SoLoader.init");
      }
      SoLoader.init(context, 0);
      if (FrescoSystrace.isTracing()) {
        FrescoSystrace.endSection();
      }
    } catch (IOException e) {
      if (FrescoSystrace.isTracing()) {
        FrescoSystrace.endSection();
      }
      throw new RuntimeException("Could not initialize SoLoader", e);
    }
    // we should always use the application context to avoid memory leaks
    context = context.getApplicationContext();
    if (imagePipelineConfig == null) {
      ImagePipelineFactory.initialize(context);
    } else {
      ImagePipelineFactory.initialize(imagePipelineConfig);
    }
    initializeDrawee(context, draweeConfig);
    if (FrescoSystrace.isTracing()) {
      FrescoSystrace.endSection();
    }
  }
1042194
public void paint(Paintable paintable, Object group, MapContext context) {
		VectorTile tile = (VectorTile) paintable;
		boolean labeled = tile.getCache().getLayer().isLabelsShowing();
		switch (tile.getContentType()) {
			case STRING_CONTENT:
				// Paint the feature content:
				if (tile.getFeatureContent().isLoaded()) {
					drawData(tile.getCache().getLayer().getFeatureGroup(), tile.getFeatureContent(), context);
				}
				// Paint the label content:
				if (tile.getLabelContent().isLoaded()) {
					drawData(tile.getCache().getLayer().getLabelGroup(), tile.getLabelContent(), context);
				}
				break;
			case URL_CONTENT:
				// paint the features url				
				if (tile.getFeatureContent().isLoaded()) {
					drawImage(tile.getCache().getLayer().getFeatureGroup(), tile, tile.getFeatureContent(), context);
				}
				// paint the label url
				if (labeled && tile.getLabelContent().isLoaded()) {
					drawImage(tile.getCache().getLayer().getLabelGroup(), tile, tile.getLabelContent(), context);
					// or Paint the feature url
				}
				break;
		}

	}
571834
public void setColor(@ColorInt int color) {
    this.color = color;
    if (!style.isFullyLoaded()) {
      // We are in progress of loading a new style
      return;
    }

    fillExtrusionLayer.setProperties(fillExtrusionColor(color));
  }
649033
public void init() {
        frame =  new JFrame("Drools Example");
        frame.setDefaultCloseOperation(conf.isExitOnClose() ? JFrame.EXIT_ON_CLOSE : JFrame.DISPOSE_ON_CLOSE);
        frame.setResizable( false );
        frame.setBackground(Color.BLACK);
        frame.getContentPane().setBackground(Color.BLACK);


        panel = (JPanel) frame.getContentPane();
        panel.setPreferredSize(new Dimension(conf.getWindowWidth(), conf.getWindowHeight()));
        panel.setLayout(null);

        setBounds(0, 0, conf.getWindowWidth(), conf.getWindowHeight());
        panel.add(this);
        setIgnoreRepaint(true);

        panel.setFocusable(false); // GameUI is used in Canvas-based games only (Invaders, Pong) and only need keylistener on the external Swing JFrame 
        setFocusable(false);
        KeyListener klistener = new GameKeyListener( ksession.getEntryPoint( "KeyPressedStream" ), ksession.getEntryPoint( "KeyReleasedStream" ) );
        frame.addKeyListener(klistener);

        frame.setLocationRelativeTo(null); // Center in screen
        frame.pack();
        frame.setResizable(false);
        frame.setVisible( true );

        createBufferStrategy(2);
        bufferStrategy = getBufferStrategy();
    }
987765
public void makeCurrent(EGLSurface eglSurface) {
        if (mEGLDisplay == EGL14.EGL_NO_DISPLAY) {
            // called makeCurrent() before create?
            Log.d(TAG, "NOTE: makeCurrent w/o display");
        }
        if (!EGL14.eglMakeCurrent(mEGLDisplay, eglSurface, eglSurface, mEGLContext)) {
            throw new RuntimeException("eglMakeCurrent failed");
        }
    }
910697
public void enableTexture(GL2 gl) {
        if( texture != null ) {
            texture.enable(gl);
            texture.bind(gl);
        }
    }
256990
public void setSurfaceId(int surfaceId)
    {
        Check.superiorOrEqual(surfaceId, 0);
        this.surfaceId = Integer.valueOf(surfaceId);
        if (surfaces.containsKey(this.surfaceId))
        {
            nextSurface = surfaces.get(this.surfaceId);
        }
        else
        {
            throw new LionEngineException(ERROR_SURFACE_ID + surfaceId);
        }
    }
760426
public void setTileFactory(TileFactory factory)
    {
        if (factory == null)
            throw new NullPointerException("factory must not be null");

        this.factory.removeTileListener(tileLoadListener);
        this.factory.dispose();

        this.factory = factory;
        this.setZoom(factory.getInfo().getDefaultZoomLevel());

        factory.addTileListener(tileLoadListener);

        repaint();
    }
493046
private void loadTilesCollisions(MapTileCollision mapCollision)
    {
        for (int v = 0; v < map.getInTileHeight(); v++)
        {
            for (int h = 0; h < map.getInTileWidth(); h++)
            {
                final Tile tile = map.getTile(h, v);
                if (tile != null)
                {
                    loadTileCollisions(mapCollision, tile);
                }
            }
        }
    }
300378
public void setBackgroundColor(Color colorBackground)
    {
        m_colorBackground = colorBackground;
        if (m_parent != null)
        {
            JTiledImage panel = (JTiledImage)JBasePanel.getSubScreen(this, JTiledImage.class);
            if (panel != null)
                panel.setBackground(colorBackground);
        }
    }
766108
protected void setLoadingDrawable(LoadingDrawable drawable) {
        if (drawable == null) {
            throw new NullPointerException("LoadingDrawable is null, You can only set the STYLE_CIRCLE and STYLE_LINE parameters.");
        } else {
            drawable.setCallback(this);
            mLoadingDrawable = drawable;

            invalidate();
            requestLayout();
        }
    }
421227
@Override
    public void attachToLayerColorMap()
    {
        final Layer layer = getLayer();

        if (null != layer)
        {
            final NFastArrayList<T> list = getChildNodes();

            if (null != list)
            {
                final int size = list.size();

                for (int i = 0; i < size; i++)
                {
                    list.get(i).attachToLayerColorMap();
                }
            }
        }
    }
335368
public Surface fillRect (float x, float y, float width, float height) {
    if (patternTex != null) {
      batch.addQuad(patternTex, tint, tx(), x, y, width, height);
    } else {
      batch.addQuad(colorTex, Tint.combine(fillColor, tint), tx(), x, y, width, height);
    }
    return this;
  }
257725
public void setTexture(GVRRenderTexture texture)
    {
        mTexture = texture;
        NativeRenderTarget.setTexture(getNative(), texture.getNative());
    }