Beispiel #1
0
 public void write1(Data d)
 {
     write1(d.data, d.offset, d.n());
 }
Beispiel #2
0
 public void write1(int j, Data d)
 {
     write1(j, d.data, d.offset, d.n());
 }
Beispiel #3
0
 public void write1(int j, Data d)
 {
     write1 (j, d.data, d.offset, d.n ());
 }
Beispiel #4
0
 public void write1(Data d)
 {
     write1 (d.data, d.offset, d.n ());
 }
Beispiel #5
0
        // glx render opcode 2 - call lists
        /**
           * @see <a href="glCallLists.html">glCallLists</a>
           */
        public void call_lists(int type, Object lists)
        {
            Data data;

            switch (type) {
            case BYTE:                  // fall through
            case UNSIGNED_BYTE:
              data = new Data ((byte []) lists);
              break;

            case SHORT:                 // fall through
            case UNSIGNED_SHORT:        // fall through
            case X2_BYTES:
              data = new Data ((int []) lists, 2);
              break;

            case INT:                   // fall through
            case UNSIGNED_INT:          // fall through
            case X4_BYTES:
              data = new Data ((int []) lists, 4);
              break;

            case FLOAT:
              data = new Data ((float []) lists);
              break;

            default:
              return;
            }

            begin_render_large_request (2, 12, data.np ());
            render_request.write4 (data.n ());
            render_request.write4 (type);
            end_render_large_request (data);
        }