🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.graphics.avs
Article #129

C++ and AVS

#129
From: Terry Myerson
Date: Thu, 03 Sep 1992 19:02
79 lines
1829 bytes
Hi folks -

A while ago someone asked for the avs.H header file which allowed
you to write avs modules in C++.  

So here it is-

Terry

---
Terry Myerson
International AVS Center
North Carolina Supercomputing Center
tvv@ncsc.org


// avs.H - A header file for writing modules in C++
// Note: Not all avs calls are supported at this point
// This is an evolving header file that should patch
// some of the problems with developing modules for avs
// in C++.
// The header file was written by Lars M Bishop, Brown University,
// with ideas from Timothy Miller, Brown University

#ifndef AVS_H_INCLUDED
#define AVS_H_INCLUDED

#define class avs_class   // a little hack to get around avs's use
#define template avs_template // of class and template

extern "C" {
#include <avs/avs.h>
#include <avs/field.h>
}

#undef class
#undef template

extern "C" {
int
AVSinit_modules();

AVSmodule_from_desc(int (*)());

AVSset_module_name(char *, int);

void
AVSset_compute_proc(int (*)(...));


void
AVSconnect_widget(int, char *);

void
AVSparameter_visible(char *, int);

int
AVSadd_parameter(char *, char * ...);

int
AVSadd_float_parameter(char *, double, double, double);

AVSautofree_output(int);

int
AVScreate_input_port(char *, char *, char *);

int
AVScreate_output_port(char *, char *);

int
AVSfield_get_int(AVSfield *, int);

char *
AVSdata_alloc(char *, int *);

}

#endif
Technical Details
Message-ID: <Bu0nKv.Av6@doppler.ncsc.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!doppler!ncsc.org!avs

Show Full Headers
Complete Article Headers
Newsgroups: comp.graphics.avs
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!doppler!ncsc.org!avs
From: avs@ncsc.org (Terry Myerson)
Subject: C++ and AVS
Message-ID: <Bu0nKv.Av6@doppler.ncsc.org>
Sender: news@doppler.ncsc.org
Nntp-Posting-Host: doppler
Reply-To: avs@ncsc.org 
Organization: North Carolina Supercomputing Center
Date: Thu, 3 Sep 1992 19:02:55 GMT
Lines: 81