Ignore:
Timestamp:
Dec 27, 2007 3:24:48 PM (16 years ago)
Author:
gah
Message:

More clean up. Added dxReader.cpp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/vizservers/nanovis/PerfQuery.h

    r377 r835  
    2525
    2626//check if occlusion query is supported
    27 static bool check_query_support(){
    28   int bitsSupported = -1;
    29   glGetQueryivARB(GL_SAMPLES_PASSED_ARB, GL_QUERY_COUNTER_BITS_ARB, &bitsSupported);
    30   if(bitsSupported == 0) {
    31     fprintf(stderr, "occlusion query not supported!\n");
    32     return false;
    33   }
    34   else{
    35     fprintf(stderr, "Occlusion query with %d bits supported\n", bitsSupported);
    36     return true;
    37   }
     27inline bool check_query_support()
     28{
     29    int bitsSupported = -1;
     30    glGetQueryivARB(GL_SAMPLES_PASSED_ARB, GL_QUERY_COUNTER_BITS_ARB,
     31                    &bitsSupported);
     32    if(bitsSupported == 0) {
     33        fprintf(stderr, "occlusion query not supported!\n");
     34        return false;
     35    } else {
     36        fprintf(stderr, "Occlusion query with %d bits supported\n",
     37                bitsSupported);
     38        return true;
     39    }
    3840}
    3941
Note: See TracChangeset for help on using the changeset viewer.