Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "oslexec.h"
- #ifdef OSL_NAMESPACE
- namespace OSL_NAMESPACE {
- #endif
- namespace OSL {
- using namespace OSL;
- class SimpleRenderer : public RendererServices
- {
- virtual bool get_matrix (Matrix44 &result, TransformationPtr xform,
- float time);
- virtual bool get_matrix (Matrix44 &result, ustring from, float time);
- virtual bool get_attribute (void *renderstate, bool derivatives,
- ustring object, TypeDesc type, ustring name,
- void *val );
- virtual bool get_array_attribute (void *renderstate, bool derivatives,
- ustring object, TypeDesc type,
- ustring name, int index, void *val );
- virtual bool get_userdata (bool derivatives, ustring name, TypeDesc type,
- void *renderstate, void *val);
- virtual bool has_userdata (ustring name, TypeDesc type, void *renderstate);
- virtual void *get_pointcloud_attr_query (ustring *attr_names,
- TypeDesc *attr_types, int nattrs);
- virtual int pointcloud (ustring filename, const OSL::Vec3 ¢er, float radius,
- int max_points, void *attr_query, void **attr_outdata);
- };
- /* Implement the purely virtual methods */
- bool SimpleRenderer::get_matrix (Matrix44 &result, TransformationPtr xform,
- float time){
- return false;
- }
- bool SimpleRenderer::get_matrix (Matrix44 &result, ustring from, float time){
- return false;
- }
- bool SimpleRenderer::get_attribute (void *renderstate, bool derivatives,
- ustring object, TypeDesc type, ustring name,
- void *val ){
- return false;
- }
- bool SimpleRenderer::get_array_attribute (void *renderstate, bool derivatives,
- ustring object, TypeDesc type,
- ustring name, int index, void *val ){
- return false;
- }
- bool SimpleRenderer::get_userdata (bool derivatives, ustring name, TypeDesc type,
- void *renderstate, void *val){
- return false;
- }
- bool SimpleRenderer::has_userdata (ustring name, TypeDesc type, void *renderstate){
- return false;
- }
- void * SimpleRenderer::get_pointcloud_attr_query (ustring *attr_names,
- TypeDesc *attr_types, int nattrs){
- return NULL;
- }
- int SimpleRenderer::pointcloud (ustring filename, const OSL::Vec3 ¢er, float radius,
- int max_points, void *attr_query, void **attr_outdata){
- return 0;
- }
- }; // namespace OSL
- #ifdef OSL_NAMESPACE
- }; // end namespace OSL_NAMESPACE
- using namespace OSL_NAMESPACE;
- #endif
- int main (){
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement