Examples of LineRecord


Examples of com.ardor3d.renderer.state.record.LineRecord

        }
    }

    public void setupLineParameters(final float lineWidth, final int stippleFactor, final short stipplePattern,
            final boolean antialiased) {
        final LineRecord lineRecord = ContextManager.getCurrentContext().getLineRecord();

        if (!lineRecord.isValid() || lineRecord.width != lineWidth) {
            GL11.glLineWidth(lineWidth);
            lineRecord.width = lineWidth;
        }

        if (stipplePattern != (short) 0xFFFF) {
            if (!lineRecord.isValid() || !lineRecord.stippled) {
                GL11.glEnable(GL11.GL_LINE_STIPPLE);
                lineRecord.stippled = true;
            }

            if (!lineRecord.isValid() || stippleFactor != lineRecord.stippleFactor
                    || stipplePattern != lineRecord.stipplePattern) {
                GL11.glLineStipple(stippleFactor, stipplePattern);
                lineRecord.stippleFactor = stippleFactor;
                lineRecord.stipplePattern = stipplePattern;
            }
        } else if (!lineRecord.isValid() || lineRecord.stippled) {
            GL11.glDisable(GL11.GL_LINE_STIPPLE);
            lineRecord.stippled = false;
        }

        if (antialiased) {
            if (!lineRecord.isValid() || !lineRecord.smoothed) {
                GL11.glEnable(GL11.GL_LINE_SMOOTH);
                lineRecord.smoothed = true;
            }
            if (!lineRecord.isValid() || lineRecord.smoothHint != GL11.GL_NICEST) {
                GL11.glHint(GL11.GL_LINE_SMOOTH_HINT, GL11.GL_NICEST);
                lineRecord.smoothHint = GL11.GL_NICEST;
            }
        } else if (!lineRecord.isValid() || lineRecord.smoothed) {
            GL11.glDisable(GL11.GL_LINE_SMOOTH);
            lineRecord.smoothed = false;
        }

        if (!lineRecord.isValid()) {
            lineRecord.validate();
        }
    }
View Full Code Here

Examples of com.ardor3d.renderer.state.record.LineRecord

    public void setupLineParameters(final float lineWidth, final int stippleFactor, final short stipplePattern,
            final boolean antialiased) {
        final GL gl = GLContext.getCurrentGL();

        final LineRecord lineRecord = ContextManager.getCurrentContext().getLineRecord();

        if (!lineRecord.isValid() || lineRecord.width != lineWidth) {
            gl.glLineWidth(lineWidth);
            lineRecord.width = lineWidth;
        }

        if (stipplePattern != (short) 0xFFFF) {
            if (!lineRecord.isValid() || !lineRecord.stippled) {
                gl.glEnable(GL2.GL_LINE_STIPPLE);
                lineRecord.stippled = true;
            }

            if (!lineRecord.isValid() || stippleFactor != lineRecord.stippleFactor
                    || stipplePattern != lineRecord.stipplePattern) {
                gl.getGL2().glLineStipple(stippleFactor, stipplePattern);
                lineRecord.stippleFactor = stippleFactor;
                lineRecord.stipplePattern = stipplePattern;
            }
        } else if (!lineRecord.isValid() || lineRecord.stippled) {
            gl.glDisable(GL2.GL_LINE_STIPPLE);
            lineRecord.stippled = false;
        }

        if (antialiased) {
            if (!lineRecord.isValid() || !lineRecord.smoothed) {
                gl.glEnable(GL.GL_LINE_SMOOTH);
                lineRecord.smoothed = true;
            }
            if (!lineRecord.isValid() || lineRecord.smoothHint != GL.GL_NICEST) {
                gl.glHint(GL.GL_LINE_SMOOTH_HINT, GL.GL_NICEST);
                lineRecord.smoothHint = GL.GL_NICEST;
            }
        } else if (!lineRecord.isValid() || lineRecord.smoothed) {
            gl.glDisable(GL.GL_LINE_SMOOTH);
            lineRecord.smoothed = false;
        }

        if (!lineRecord.isValid()) {
            lineRecord.validate();
        }
    }
View Full Code Here

Examples of erjang.beam.repr.LineRecord

                fnameNo = readSmallIntValue(d1);
                break;

            default:
                Int val = readOperand(d1).testInt();
                lineRecords[++i] = new LineRecord(fnameNo, val.value);
                //                System.err.println("line["+(i)+"] = "+val.value + " ["+fnameNo+"]");
            }
    }

    filenames = new EString[fnames+1];
View Full Code Here

Examples of flash.swf.debug.LineRecord

        // C: We want the class name as the second input argument. Fortunately, we don't
        //    really do anything with the source, so it's okay.
        dm.setText("Object.registerClass(" + __Packages + ", " + __Packages + ");");
        dm.bitmap = 1;

        LineRecord lr = new LineRecord(1, dm);

        int startOffset = tag.actionList.getOffset(0);
        dm.addOffset(lr, startOffset);

        tag.actionList.insert(startOffset, lr);
View Full Code Here

Examples of flash.swf.debug.LineRecord

        emptyMethodName = null;
      }

      if (a.code == ActionList.sactionLineRecord)
      {
        LineRecord line = (LineRecord) a;
        if (line.module != null)
        {
          d = line.module;
          if (d.name.endsWith(".mxml"))
          {
View Full Code Here

Examples of flash.swf.debug.LineRecord

        return flags;
    }

    private void decodeAction(int opcode, int offset, ActionFactory factory) throws IOException
    {
        LineRecord line = debug != null ? debug.getLine(offset) : null;
    if (line != null)
    {
            factory.setLine(offset, line);
    }
View Full Code Here

Examples of flash.swf.debug.LineRecord

        break;
      case kDebugOffset:
        id = (int) in.readUI32();
        int lineno = (int) in.readUI32();
        DebugModule module = (DebugModule) modules.get(id);
        LineRecord lr = new LineRecord(lineno, module);
        int offset = (int) in.readUI32();

        if (module != null)
        {
          // not corrupted before we add the offset and offset add fails
          boolean wasCorrupt = module.corrupt;
          if (!module.addOffset(lr, offset) && !wasCorrupt)
            handler.error(module.name+":"+lineno+" does not exist for offset "+offset+", module marked for exclusion from debugging");
          handler.offset(offset, lr);
        }
        else
        {
          lineRecords.add(new Integer(id));
          lineRecords.add(lr);
          lineRecords.add(new Integer(offset));
        }
        break;
      case kDebugBreakpoint:
        handler.breakpoint((int) in.readUI32());
        break;
      case kDebugRegisters:
      {
        offset = (int)in.readUI32();
        int size = in.readUI8();
        RegisterRecord r = new RegisterRecord(offset, size);
        for(int i=0; i<size; i++)
        {
          int nbr = in.readUI8();
          String name = in.readString();
          r.addRegister(nbr, name);
        }
        handler.registers(offset, r);
        break;
      }

      case kDebugID:
                FlashUUID uuid = new FlashUUID();
                in.readFully(uuid.bytes);
                handler.uuid(uuid);
        break;
      case -1:
        break;
      default:
        throw new SwfFormatException("Unexpected tag id " + tag);
      }

      if (tag == -1)
      {
        break;
      }
    }
    while (true);

    int i = 0, size = lineRecords.size();
    while (i < size)
    {
      int id = ((Integer) lineRecords.get(i)).intValue();
      LineRecord lr = (LineRecord) lineRecords.get(i + 1);
      int offset = ((Integer) lineRecords.get(i + 2)).intValue();
      lr.module = (DebugModule) modules.get(id);

      if (lr.module != null)
      {
View Full Code Here

Examples of flash.swf.debug.LineRecord

        DebugModule module = (DebugModule) modules.get(moduleId);
    int i = 0, size = lineRecords.size();
    while (i < size)
    {
      Integer id = (Integer) lineRecords.get(i);
      LineRecord lr = (LineRecord) lineRecords.get(i + 1);
      Integer offset = (Integer) lineRecords.get(i + 2);

      if (id.intValue() == moduleId)
      {
                lr.module = module;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.