public void GLBegin() { if (count > 0) { Pack(); texture.GLBegin(); } }
public void CreateUI(GLEx g) { if (visible) { CollectionUtils.Clear(tex2ds); for (int i = 0; i < count; i++) { texture = kernels[i].Get(); if (!tex2ds.Contains(texture)) { CollectionUtils.Add(tex2ds, texture); texture.GLBegin(); } kernels[i].Draw(g); } for (int i_1 = 0; i_1 < tex2ds.Count; i_1++) { texture = tex2ds[i_1]; texture.GLEnd(); } } }