com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.drawDebug()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup.drawDebug()方法的一些代码示例,展示了WidgetGroup.drawDebug()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WidgetGroup.drawDebug()方法的具体详情如下:
包路径:com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup
类名称:WidgetGroup
方法名:drawDebug

WidgetGroup.drawDebug介绍

暂无

代码示例

代码示例来源:origin: libgdx/libgdx

  1. public void drawDebug (ShapeRenderer shapes) {
  2. validate();
  3. if (isTransform()) {
  4. applyTransform(shapes, computeTransform());
  5. if (clip) {
  6. shapes.flush();
  7. float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this);
  8. boolean draw = background == null ? clipBegin(0, 0, getWidth(), getHeight())
  9. : clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this),
  10. getHeight() - padBottom - padTop.get(this));
  11. if (draw) {
  12. drawDebugChildren(shapes);
  13. clipEnd();
  14. }
  15. } else
  16. drawDebugChildren(shapes);
  17. resetTransform(shapes);
  18. } else
  19. super.drawDebug(shapes);
  20. }
  21. }

代码示例来源:origin: libgdx/libgdx

  1. public void drawDebug (ShapeRenderer shapes) {
  2. if (isTransform()) {
  3. applyTransform(shapes, computeTransform());
  4. drawDebugRects(shapes);
  5. if (clip) {
  6. shapes.flush();
  7. float x = 0, y = 0, width = getWidth(), height = getHeight();
  8. if (background != null) {
  9. x = padLeft.get(this);
  10. y = padBottom.get(this);
  11. width -= x + padRight.get(this);
  12. height -= y + padTop.get(this);
  13. }
  14. if (clipBegin(x, y, width, height)) {
  15. drawDebugChildren(shapes);
  16. clipEnd();
  17. }
  18. } else
  19. drawDebugChildren(shapes);
  20. resetTransform(shapes);
  21. } else {
  22. drawDebugRects(shapes);
  23. super.drawDebug(shapes);
  24. }
  25. }

代码示例来源:origin: libgdx/libgdx

  1. public void drawDebug (ShapeRenderer shapes) {
  2. if (isTransform()) {
  3. applyTransform(shapes, computeTransform());
  4. drawDebugRects(shapes);
  5. if (clip) {
  6. shapes.flush();
  7. float x = 0, y = 0, width = getWidth(), height = getHeight();
  8. if (background != null) {
  9. x = padLeft.get(this);
  10. y = padBottom.get(this);
  11. width -= x + padRight.get(this);
  12. height -= y + padTop.get(this);
  13. }
  14. if (clipBegin(x, y, width, height)) {
  15. drawDebugChildren(shapes);
  16. clipEnd();
  17. }
  18. } else
  19. drawDebugChildren(shapes);
  20. resetTransform(shapes);
  21. } else {
  22. drawDebugRects(shapes);
  23. super.drawDebug(shapes);
  24. }
  25. }

代码示例来源:origin: libgdx/libgdx

  1. public void drawDebug (ShapeRenderer shapes) {
  2. validate();
  3. if (isTransform()) {
  4. applyTransform(shapes, computeTransform());
  5. if (clip) {
  6. shapes.flush();
  7. float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this);
  8. boolean draw = background == null ? clipBegin(0, 0, getWidth(), getHeight())
  9. : clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this),
  10. getHeight() - padBottom - padTop.get(this));
  11. if (draw) {
  12. drawDebugChildren(shapes);
  13. clipEnd();
  14. }
  15. } else
  16. drawDebugChildren(shapes);
  17. resetTransform(shapes);
  18. } else
  19. super.drawDebug(shapes);
  20. }
  21. }

代码示例来源:origin: com.badlogicgames.gdx/gdx

  1. public void drawDebug (ShapeRenderer shapes) {
  2. if (isTransform()) {
  3. applyTransform(shapes, computeTransform());
  4. drawDebugRects(shapes);
  5. if (clip) {
  6. shapes.flush();
  7. float x = 0, y = 0, width = getWidth(), height = getHeight();
  8. if (background != null) {
  9. x = padLeft.get(this);
  10. y = padBottom.get(this);
  11. width -= x + padRight.get(this);
  12. height -= y + padTop.get(this);
  13. }
  14. if (clipBegin(x, y, width, height)) {
  15. drawDebugChildren(shapes);
  16. clipEnd();
  17. }
  18. } else
  19. drawDebugChildren(shapes);
  20. resetTransform(shapes);
  21. } else {
  22. drawDebugRects(shapes);
  23. super.drawDebug(shapes);
  24. }
  25. }

代码示例来源:origin: com.badlogicgames.gdx/gdx

  1. public void drawDebug (ShapeRenderer shapes) {
  2. validate();
  3. if (isTransform()) {
  4. applyTransform(shapes, computeTransform());
  5. if (clip) {
  6. shapes.flush();
  7. float padLeft = this.padLeft.get(this), padBottom = this.padBottom.get(this);
  8. boolean draw = background == null ? clipBegin(0, 0, getWidth(), getHeight())
  9. : clipBegin(padLeft, padBottom, getWidth() - padLeft - padRight.get(this),
  10. getHeight() - padBottom - padTop.get(this));
  11. if (draw) {
  12. drawDebugChildren(shapes);
  13. clipEnd();
  14. }
  15. } else
  16. drawDebugChildren(shapes);
  17. resetTransform(shapes);
  18. } else
  19. super.drawDebug(shapes);
  20. }
  21. }

相关文章