Ignore:
Timestamp:
Jun 25, 2008 11:46:17 AM (13 years ago)
Author:
dkearney
Message:

changed float buffer example to really buffer floats.
changed dxWrite to demo functions for changing properties of the positions grid we create.
added character version of show to simple buffer objects.

Location:
trunk/examples/objects/floatBuffer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/objects/floatBuffer/Makefile

    r1064 r1065  
     1all: floatBuffer
     2
    13floatBuffer: floatBuffer.cc
    24        g++ -g -Wall -o $@ $< -lrappture
  • trunk/examples/objects/floatBuffer/floatBuffer.cc

    r1064 r1065  
    44int main()
    55{
    6     Rappture::SimpleBuffer<int> fbuf;
     6    Rappture::SimpleBuffer<float> fbuf;
    77    float val = 0;
    88
     
    1212        std::cout << "storing " << val << std::endl;
    1313        fbuf.append(&val,1);
    14         // fbuf.show();
    1514        val += 1.1;
    1615    }
     
    3332    std::cout << "SEEK_END -20 pos = " << fbuf.tell() << std::endl;;
    3433
    35     Rappture::SimpleBuffer<int> cbuf;
     34    Rappture::SimpleBuffer<float> cbuf;
    3635    cbuf.move(fbuf);
    3736    cbuf.show();
Note: See TracChangeset for help on using the changeset viewer.