Very unfinished cybergfx library

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@6673 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
This commit is contained in:
nlorentz 2000-01-02 22:06:33 +00:00
parent 2326ca4454
commit a3385d2446
34 changed files with 1961 additions and 0 deletions

View File

@ -0,0 +1,52 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH1(struct List *, AllocCModeListTagList,
/* SYNOPSIS */
AROS_LHA(struct TagItem *, , A1),
/* LOCATION */
struct Library *, CyberGfxBase, 12, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("AllocCModeListTagList");
AROS_LIBFUNC_EXIT
} /* AllocCModeListTagList */

View File

@ -0,0 +1,50 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
struct List * AllocCModeListTags (
/* SYNOPSIS */
Tag ,
... )
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("AllocCModeListTags");
AROS_LIBFUNC_EXIT
} /* AllocCModeListTags */

View File

@ -0,0 +1,52 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH1(ULONG, BestCModeIDTagList,
/* SYNOPSIS */
AROS_LHA(struct TagItem *, , A0),
/* LOCATION */
struct Library *, CyberGfxBase, 10, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("BestCModeIDTagList");
AROS_LIBFUNC_EXIT
} /* BestCModeIDTagList */

View File

@ -0,0 +1,50 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
ULONG BestCModeIDTags (
/* SYNOPSIS */
Tag ,
... )
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("BestCModeIDTags");
AROS_LIBFUNC_EXIT
} /* BestCModeIDTags */

View File

@ -0,0 +1,53 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH2(ULONG, CModeRequestTagList,
/* SYNOPSIS */
AROS_LHA(APTR , , A0),
AROS_LHA(struct TagItem *, , A1),
/* LOCATION */
struct Library *, CyberGfxBase, 11, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("CModeRequestTagList");
AROS_LIBFUNC_EXIT
} /* CModeRequestTagList */

View File

@ -0,0 +1,51 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
ULONG CModeRequestTags (
/* SYNOPSIS */
APTR ,
Tag ,
... )
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("CModeRequestTags");
AROS_LIBFUNC_EXIT
} /* CModeRequestTags */

View File

@ -0,0 +1,53 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH2(void, CVideoCtrlTagList,
/* SYNOPSIS */
AROS_LHA(struct ViewPort *, , A0),
AROS_LHA(struct TagItem *, , A1),
/* LOCATION */
struct Library *, CyberGfxBase, 27, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("CVideoCtrlTagList");
AROS_LIBFUNC_EXIT
} /* CVideoCtrlTagList */

51
rom/cgfx/cvideoctrltags.c Normal file
View File

@ -0,0 +1,51 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
void CVideoCtrlTags (
/* SYNOPSIS */
struct ViewPort * ,
Tag tag1,
... )
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("CVideoCtrlTags");
AROS_LIBFUNC_EXIT
} /* CVideoCtrlTags */

View File

@ -0,0 +1,64 @@
/*
Copyright (C) 1997 AROS - The Amiga Research OS
$Id$
Desc: CGFX Library
Lang: english
*/
#define AROS_ALMOST_COMPATIBLE
#include <proto/exec.h>
#include <proto/oop.h>
#include <utility/utility.h>
#include "cybergraphics_intern.h"
#include "libdefs.h"
#ifdef SysBase
# undef SysBase
#endif
/* Customize libheader.c */
#define LC_SYSBASE_FIELD(lib) (((struct IntCGFXBase *)(lib))->sysbase)
#define LC_SEGLIST_FIELD(lib) (((struct IntCGFXBase *)(lib))->seglist)
#define LC_RESIDENTNAME Cybergraphics_resident
#define LC_RESIDENTFLAGS RTF_AUTOINIT|RTF_COLDSTART
#define LC_RESIDENTPRI 8
#define LC_LIBBASESIZE sizeof(struct IntCGFXBase)
#define LC_LIBHEADERTYPEPTR LIBBASETYPEPTR
#define LC_LIB_FIELD(lib) (((struct IntCGFXBase *)(lib))->libnode)
#define LC_NO_OPENLIB
#define LC_NO_CLOSELIB
#define LC_NO_EXPUNGELIB
#define LC_STATIC_INITLIB
#include <libcore/libheader.c>
#define SysBase (GetCGFXBase(CyberGfxBase)->sysbase)
static ULONG SAVEDS STDARGS LC_BUILDNAME(L_InitLib) (LIBBASETYPEPTR LIBBASE)
{
UtilityBase = OpenLibrary (UTILITYNAME, 0);
if (UtilityBase)
{
OOPBase = OpenLibrary("oop.library", 0);
if (OOPBase)
{
GfxBase = OpenLibrary("graphics.library", 37);
if (GfxBase)
{
return TRUE;
}
CloseLibrary(OOPBase);
}
CloseLibrary(UtilityBase);
}
return (FALSE);
}

View File

@ -0,0 +1,50 @@
#ifndef CYBERGRAPHICS_INTERN_H
#define CYBERGRAPHICS_INTERN_H
#ifndef EXEC_LIBRARIES_H
# include <exec/libraries.h>
#endif
#ifndef DOS_BPTR_H
# include <dos/bptr.h>
#endif
#ifndef AROS_LIBCALL_H
# include <aros/libcall.h>
#endif
#ifndef GRAPHICS_RASTPORT_H
# include <graphics/rastport.h>
#endif
struct IntCGFXBase
{
struct Library libnode;
struct ExecBase *sysbase;
BPTR seglist;
struct Library *utilitybase;
struct Library *oopbase;
struct GfxBase *gfxbase;
};
#define GetCGFXBase(base) ((struct IntCGFXBase *)base)
#undef OOPBase
#define OOPBase GetCGFXBase(CyberGfxBase)->oopbase
#undef UtilityBase
#define UtilityBase GetCGFXBase(CyberGfxBase)->utilitybase
#undef GfxBase
#define GfxBase GetCGFXBase(CyberGfxBase)->gfxbase
extern LONG driver_WriteLUTPixelArray(APTR srcrect,
UWORD srcx, UWORD srcy,
UWORD srcmod, struct RastPort *rp, APTR ctable,
UWORD destx, UWORD desty,
UWORD sizex, UWORD sizey,
UBYTE ctabformat,
struct Library *CyberGfxBase);
#endif /* CYBERGRAPHICS_INTERN_H */

View File

@ -0,0 +1,54 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH3(void, DoCDrawMethodTagList,
/* SYNOPSIS */
AROS_LHA(struct Hook *, , A0),
AROS_LHA(struct RastPort *, , A1),
AROS_LHA(struct TagItem *, , A2),
/* LOCATION */
struct Library *, CyberGfxBase, 26, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("DoCDrawMethodTagList");
AROS_LIBFUNC_EXIT
} /* DoCDrawMethodTagList */

View File

@ -0,0 +1,52 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
void DoCDrawMethodTags (
/* SYNOPSIS */
struct Hook * ,
struct RastPort * ,
Tag ,
... )
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("DoCDrawMethodTags");
AROS_LIBFUNC_EXIT
} /* DoCDrawMethodTags */

58
rom/cgfx/extractcolor.c Normal file
View File

@ -0,0 +1,58 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH7(ULONG, ExtractColor,
/* SYNOPSIS */
AROS_LHA(struct RastPort *, , A0),
AROS_LHA(struct BitMap *, , A1),
AROS_LHA(ULONG , , D0),
AROS_LHA(ULONG , , D1),
AROS_LHA(ULONG , , D2),
AROS_LHA(ULONG , , D3),
AROS_LHA(ULONG , , D4),
/* LOCATION */
struct Library *, CyberGfxBase, 31, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("ExtractColor");
AROS_LIBFUNC_EXIT
} /* ExtractColor */

57
rom/cgfx/fillpixelarray.c Normal file
View File

@ -0,0 +1,57 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH6(ULONG, FillPixelArray,
/* SYNOPSIS */
AROS_LHA(struct RastPort *, , A1),
AROS_LHA(UWORD , , D0),
AROS_LHA(UWORD , , D1),
AROS_LHA(UWORD , , D2),
AROS_LHA(UWORD , , D3),
AROS_LHA(ULONG , , D4),
/* LOCATION */
struct Library *, CyberGfxBase, 25, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("FillPixelArray");
AROS_LIBFUNC_EXIT
} /* FillPixelArray */

52
rom/cgfx/freecmodelist.c Normal file
View File

@ -0,0 +1,52 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH1(void, FreeCModeList,
/* SYNOPSIS */
AROS_LHA(struct List *, , A0),
/* LOCATION */
struct Library *, CyberGfxBase, 13, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("FreeCModeList");
AROS_LIBFUNC_EXIT
} /* FreeCModeList */

53
rom/cgfx/getcyberidattr.c Normal file
View File

@ -0,0 +1,53 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH2(ULONG, GetCyberIDAttr,
/* SYNOPSIS */
AROS_LHA(ULONG, , D0),
AROS_LHA(ULONG, , D1),
/* LOCATION */
struct Library *, CyberGfxBase, 17, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("GetCyberIDAttr");
AROS_LIBFUNC_EXIT
} /* GetCyberIDAttr */

View File

@ -0,0 +1,53 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH2(ULONG, GetCyberMapAttr,
/* SYNOPSIS */
AROS_LHA(struct BitMap *, , A0),
AROS_LHA(ULONG , , D0),
/* LOCATION */
struct Library *, CyberGfxBase, 16, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("GetCyberMapAttr");
AROS_LIBFUNC_EXIT
} /* GetCyberMapAttr */

View File

@ -0,0 +1,122 @@
#ifndef CYBERGRAPHX_CYBERGRAPHICS_H
#define CYBERGRAPHX_CYBERGRAPHICS_H
#ifndef GRAPHICS_DISPLAYINFO_H
# include <graphics/displayinfo.h>
#endif
#ifndef UTILITY_TAGITEM_H
# include <utility/tagitem.h>
#endif
#define CYBERGFXNAME "cybergraphics.library"
#define CYBERGFX_INCLUDE_VERSION 41UL
struct CyberModeNode {
struct Node Node;
char ModeText[DISPLAYNAMELEN];
ULONG DisplayID;
UWORD Width;
UWORD Height;
UWORD Depth;
struct TagItem *DisplayTagList;
};
#define CYBRMATTR_XMOD 0x80000001
#define CYBRMATTR_BPPIX 0x80000002
#define CYBRMATTR_DISPADR 0x80000003
#define CYBRMATTR_PIXFMT 0x80000004
#define CYBRMATTR_WIDTH 0x80000005
#define CYBRMATTR_HEIGHT 0x80000006
#define CYBRMATTR_DEPTH 0x80000007
#define CYBRMATTR_ISCYBERGFX 0x80000008
#define CYBRMATTR_ISLINEARMEM 0x80000009
#define CYBRIDATTR_PIXFMT 0x80000001
#define CYBRIDATTR_WIDTH 0x80000002
#define CYBRIDATTR_HEIGHT 0x80000003
#define CYBRIDATTR_DEPTH 0x80000004
#define CYBRIDATTR_BPPIX 0x80000005
#define CYBRMREQ_TB (TAG_USER + 0x40000)
#define CYBRMREQ_MinDepth (CYBRMREQ_TB + 0)
#define CYBRMREQ_MaxDepth (CYBRMREQ_TB + 1)
#define CYBRMREQ_MinWidth (CYBRMREQ_TB + 2)
#define CYBRMREQ_MaxWidth (CYBRMREQ_TB + 3)
#define CYBRMREQ_MinHeight (CYBRMREQ_TB + 4)
#define CYBRMREQ_MaxHeight (CYBRMREQ_TB + 5)
#define CYBRMREQ_CModelArray (CYBRMREQ_TB + 6)
#define CYBRMREQ_WinTitle (CYBRMREQ_TB + 20)
#define CYBRMREQ_OKText (CYBRMREQ_TB + 21)
#define CYBRMREQ_CancelText (CYBRMREQ_TB + 22)
#define CYBRMREQ_Screen (CYBRMREQ_TB + 30)
#define CYBRBIDTG_TB (TAG_USER + 0x50000)
#define CYBRBIDTG_Depth (CYBRBIDTG_TB + 0)
#define CYBRBIDTG_NominalWidth (CYBRBIDTG_TB + 1)
#define CYBRBIDTG_NominalHeight (CYBRBIDTG_TB + 2)
#define CYBRBIDTG_MonitorID (CYBRBIDTG_TB + 3)
#define CYBRBIDTG_BoardName (CYBRBIDTG_TB + 5)
#define PIXFMT_LUT8 0UL
#define PIXFMT_RGB15 1UL
#define PIXFMT_BGR15 2UL
#define PIXFMT_RGB15PC 3UL
#define PIXFMT_BGR15PC 4UL
#define PIXFMT_RGB16 5UL
#define PIXFMT_BGR16 6UL
#define PIXFMT_RGB16PC 7UL
#define PIXFMT_BGR16PC 8UL
#define PIXFMT_RGB24 9UL
#define PIXFMT_BGR24 10UL
#define PIXFMT_ARGB32 11UL
#define PIXFMT_BGRA32 12UL
#define PIXFMT_RGBA32 13UL
#define RECTFMT_RGB 0UL
#define RECTFMT_RGBA 1UL
#define RECTFMT_ARGB 2UL
#define RECTFMT_LUT8 3UL
#define RECTFMT_GREY8 4UL
#define SETVC_DPMSLevel 0x88002001
#define DPMS_ON 0UL
#define DPMS_STANDBY 1UL
#define DPMS_SUSPEND 2UL
#define DPMS_OFF 3UL
#define LBMI_WIDTH 0x84001001
#define LBMI_HEIGHT 0x84001002
#define LBMI_DEPTH 0x84001003
#define LBMI_PIXFMT 0x84001004
#define LBMI_BYTESPERPIX 0x84001005
#define LBMI_BYTESPERROW 0x84001006
#define LBMI_BASEADDRESS 0x84001007
#define UBMI_UPDATERECTS 0x85001001
#define UBMI_REALLYUNLOCK 0x85001002
struct CDrawMsg {
APTR cdm_MemPtr;
ULONG cdm_offx;
ULONG cdm_offy;
ULONG cdm_xsize;
ULONG cdm_ysize;
UWORD cdm_BytesPerRow;
UWORD cdm_BytePerPix;
UWORD cdm_ColorModel;
};
#define CTABFMT_XRGB8 0UL
#endif /* CYBERGRAPHX_CYBERGRAPHICS_H */

View File

@ -0,0 +1,56 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH5(ULONG, InvertPixelArray,
/* SYNOPSIS */
AROS_LHA(struct RastPort *, , A1),
AROS_LHA(UWORD , , D0),
AROS_LHA(UWORD , , D1),
AROS_LHA(UWORD , , D2),
AROS_LHA(UWORD , , D3),
/* LOCATION */
struct Library *, CyberGfxBase, 24, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("InvertPixelArray");
AROS_LIBFUNC_EXIT
} /* InvertPixelArray */

52
rom/cgfx/iscybermodeid.c Normal file
View File

@ -0,0 +1,52 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH1(BOOL, IsCyberModeID,
/* SYNOPSIS */
AROS_LHA(ULONG, , D0),
/* LOCATION */
struct Library *, CyberGfxBase, 9, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("IsCyberModeID");
AROS_LIBFUNC_EXIT
} /* IsCyberModeID */

6
rom/cgfx/lib.conf Normal file
View File

@ -0,0 +1,6 @@
name cybergraphics
version 41.1
option rom
libbasetype struct Library
libbase CyberGfxBase
basename Cybergraphics

View File

@ -0,0 +1,53 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH2(APTR, LockBitMapTagList,
/* SYNOPSIS */
AROS_LHA(APTR , , A0),
AROS_LHA(struct TagItem *, , A1),
/* LOCATION */
struct Library *, CyberGfxBase, 28, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("LockBitMapTagList");
AROS_LIBFUNC_EXIT
} /* LockBitMapTagList */

51
rom/cgfx/lockbitmaptags.c Normal file
View File

@ -0,0 +1,51 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
APTR LockBitMapTags (
/* SYNOPSIS */
APTR ,
Tag ,
... )
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("LockBitMapTags");
AROS_LIBFUNC_EXIT
} /* LockBitMapTags */

141
rom/cgfx/mmakefile.src Normal file
View File

@ -0,0 +1,141 @@
# $Id$
include $(TOP)/config/make.cfg
# BEGIN_DESC{makefile}
# This is the mmakefile for cybergraphics.library. Use it if you want to compile
# only this part of AROS.
# END_DESC{makefile}
# Sigh, this is needed because libtail.c uses <libdefs.h> not "libdefs.h"
USER_INCLUDES := -I.
MY_INCLS := $(wildcard include/*.h)
DEST_INC := $(foreach f,$(MY_INCLS), $(INCDIR)/cybergraphx/$(notdir $f))
GEN_INC := $(foreach f,$(MY_INCLS), $(GENINCDIR)/cybergraphx/$(notdir $f))
# BEGIN_DESC{localmakevar}
# \item{LIBNAME} The lowercase name of the library (without the extension).
# This is used to help derive some filenames.
#
# \item{ULIBNAME} This also contains the library name, but with the correct
# case (the same as found in the library base name).
#
# \item{OSMODULE} The name of the file which is created when compiling to
# a target with module files. In this library it is expansion.library.
#
# \item{FILES} This is a list of all files (without the .c) that
# contain internal functions of the library. You do not need to include
# the library init, function-table or end files.
#
# \item{FUNCTIONS} This is a list of all the functions that make
# up the library. The mmakefile will strip all the files in
# this list for which a special CPU dependant version exists.
# This list is concatenated into the file functions.c before
# compilation for a speed boost.
# END_DESC{localmakevar}
OBJDIR := $(GENDIR)/$(CURDIR)
LIBNAME := cybergraphics
ULIBNAME := Cybergrabphics
OSMODULE := cybergraphics.library
FILES :=
FUNCTIONS := \
writelutpixelarray
# BEGIN_DESC{localmakevar}
# \item{DEPLIBS} List of extra libraries that you want included during
# the linking process. You should not include the paths in this
# list, as it will be added later. You do not need to include your
# own lib here.
# END_DESC{localmakevar}
ifeq ("$(FLAVOUR)","native")
DEPLIBS :=
else
DEPLIBS :=
endif
# BEGIN_DESC{localmakevar}
# This is where the machine dependant magic comes in. The directories under the
# $(TOP)/config subtree will create lists of files which they wish to be used.
# These lists are used to add files to the link, and to prevent the compilation
# of other files.
#
# We create versions of the file lists for use with creating the function
# table, which needs all of the files listed.
#
# We also set up the $(OBJDIR) variable, and do some test to see whether we
# are compiling a shared library.
# END_DESC{localmakevar}
ALL_FILES := $(FILES)
ALL_FUNCTIONS := $(FUNCTIONS)
%prepare_replace rom/cgfx
%filter_replace FILES
%filter_replace FUNCTIONS
# Set up for shared library creation.
ifeq ("$(SHARED_CGFX)"),"yes")
SPECIAL_CFLAGS := $(SPECIAL_CFLAGS) $(SHARED_CFLAGS)
endif
%prepare_shlib cybergraphics $(SHARED_CGFX)
%genromlib_finline
#MM
setup-includes :
%mkdirs_q $(GENINCDIR) $(INCDIR) $(GENINCDIR)/cybergraphx $(INCDIR)/cybergraphx
#MM
includes-copy : $(DEST_INC) $(GEN_INC)
@$(NOP)
$(INCDIR)/cybergraphx/%.h : include/%.h
$(CP) include/$(notdir $<) $@
$(GENINCDIR)/cybergraphx/%.h : include/%.h
$(CP) include/$(notdir $<) $@
#MM kernel-cgfx-linklib : setup includes kernel-cgfx-$(ARCH)-$(CPU)
kernel-cgfx-linklib : show-flags $(LIB)
@$(NOP)
#MM kernel-cgfx-module : setup includes kernel-cgfx-$(ARCH)-$(CPU)
kernel-cgfx-module : show-flags $(LIB) $(OSMODDIR)/$(OSMODULE)
@$(NOP)
# --- QUICK HACKS BEGIN ---
# These are hacks for faster execution of "mmake" and "make". Use them
# only if you know set the setup is correct and do not add them as targets
# in other makefiles.
#
# Usage:
# mmake AROS.kernel-cgfx-module-quick
# make -f TOP=/dh1/AROS CURDIR=rom/cgfx mmakefile kernel-cgfx-module-quick
#MM kernel-cgfx-module-quick : kernel-cgfx-$(ARCH)-$(CPU)
kernel-cgfx-module-quick : show-flags $(LIB) $(OSMODDIR)/$(OSMODULE)
@$(NOP)
#MM kernel-cgfx-includes-quick : hidd-cgfx-$(ARCH)-$(CPU)
kernel-cgfx-includes-quick : setup-includes includes-generate includes-copy
$(NOP)
#MM kernel-cgfx-linklib-quick : kernel-cgfx-$(ARCH)-$(CPU)
kernel-cgfx-linklib-quick : show-flags $(LIB)
@$(NOP)
# --- QUICK HACKS END ---
#MM clean setup
%asm_rule "$(ALL_FUNCTIONS) $(INIT_FILE) $(ALL_FILES) $(END_FILE)"
%ctoasm_q
%common
%include_deps

58
rom/cgfx/movepixelarray.c Normal file
View File

@ -0,0 +1,58 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH7(ULONG, MovePixelArray,
/* SYNOPSIS */
AROS_LHA(UWORD , , D0),
AROS_LHA(UWORD , , D1),
AROS_LHA(struct RastPort *, , A1),
AROS_LHA(UWORD , , D2),
AROS_LHA(UWORD , , D3),
AROS_LHA(UWORD , , D4),
AROS_LHA(UWORD , , D5),
/* LOCATION */
struct Library *, CyberGfxBase, 22, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("MovePixelArray");
AROS_LIBFUNC_EXIT
} /* MovePixelArray */

61
rom/cgfx/readpixelarray.c Normal file
View File

@ -0,0 +1,61 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH10(ULONG, ReadPixelArray,
/* SYNOPSIS */
AROS_LHA(APTR , , A0),
AROS_LHA(UWORD , , D0),
AROS_LHA(UWORD , , D1),
AROS_LHA(UWORD , , D2),
AROS_LHA(struct RastPort *, , A1),
AROS_LHA(UWORD , , D3),
AROS_LHA(UWORD , , D4),
AROS_LHA(UWORD , , D5),
AROS_LHA(UWORD , , D6),
AROS_LHA(UBYTE , , D7),
/* LOCATION */
struct Library *, CyberGfxBase, 20, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("ReadPixelArray");
AROS_LIBFUNC_EXIT
} /* ReadPixelArray */

54
rom/cgfx/readrgbpixel.c Normal file
View File

@ -0,0 +1,54 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH3(ULONG, ReadRGBPixel,
/* SYNOPSIS */
AROS_LHA(struct RastPort *, , A1),
AROS_LHA(UWORD , , D0),
AROS_LHA(UWORD , , D1),
/* LOCATION */
struct Library *, CyberGfxBase, 18, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("ReadRGBPixel");
AROS_LIBFUNC_EXIT
} /* ReadRGBPixel */

View File

@ -0,0 +1,61 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH10(LONG, ScalePixelArray,
/* SYNOPSIS */
AROS_LHA(APTR , , A0),
AROS_LHA(UWORD , , D0),
AROS_LHA(UWORD , , D1),
AROS_LHA(UWORD , , D2),
AROS_LHA(struct RastPort *, , A1),
AROS_LHA(UWORD , , D3),
AROS_LHA(UWORD , , D4),
AROS_LHA(UWORD , , D5),
AROS_LHA(UWORD , , D6),
AROS_LHA(UBYTE , , D7),
/* LOCATION */
struct Library *, CyberGfxBase, 15, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("ScalePixelArray");
AROS_LIBFUNC_EXIT
} /* ScalePixelArray */

52
rom/cgfx/unlockbitmap.c Normal file
View File

@ -0,0 +1,52 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH1(void, UnLockBitMap,
/* SYNOPSIS */
AROS_LHA(APTR, , A0),
/* LOCATION */
struct Library *, CyberGfxBase, 29, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("UnLockBitMap");
AROS_LIBFUNC_EXIT
} /* UnLockBitMap */

View File

@ -0,0 +1,53 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH2(void, UnLockBitMapTagList,
/* SYNOPSIS */
AROS_LHA(APTR , , A0),
AROS_LHA(struct TagItem *, , A1),
/* LOCATION */
struct Library *, CyberGfxBase, 30, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("UnLockBitMapTagList");
AROS_LIBFUNC_EXIT
} /* UnLockBitMapTagList */

View File

@ -0,0 +1,51 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
void UnLockBitMapTags (
/* SYNOPSIS */
APTR ,
Tag ,
... )
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("UnLockBitMapTags");
AROS_LIBFUNC_EXIT
} /* UnLockBitMapTags */

View File

@ -0,0 +1,69 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
#include <graphics/rastport.h>
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH11(LONG, WriteLUTPixelArray,
/* SYNOPSIS */
AROS_LHA(APTR , srcRect, A0),
AROS_LHA(UWORD , SrcX, D0),
AROS_LHA(UWORD , SrcY, D1),
AROS_LHA(UWORD , SrcMod, D2),
AROS_LHA(struct RastPort *, rp, A1),
AROS_LHA(APTR , CTable, A2),
AROS_LHA(UWORD , DestX, D3),
AROS_LHA(UWORD , DestY, D4),
AROS_LHA(UWORD , SizeX, D5),
AROS_LHA(UWORD , SizeY, D6),
AROS_LHA(UBYTE , CTabFormat, D7),
/* LOCATION */
struct Library *, CyberGfxBase, 33, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
return driver_WriteLUTPixelArray(srcRect
, SrcX, SrcY
, SrcMod, rp, CTable
, DestX, DestY
, SizeX, SizeY
, CTabFormat
, CyberGfxBase);
AROS_LIBFUNC_EXIT
} /* WriteLUTPixelArray */

View File

@ -0,0 +1,61 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH10(ULONG, WritePixelArray,
/* SYNOPSIS */
AROS_LHA(APTR , , A0),
AROS_LHA(UWORD , , D0),
AROS_LHA(UWORD , , D1),
AROS_LHA(UWORD , , D2),
AROS_LHA(struct RastPort *, , A1),
AROS_LHA(UWORD , , D3),
AROS_LHA(UWORD , , D4),
AROS_LHA(UWORD , , D5),
AROS_LHA(UWORD , , D6),
AROS_LHA(UBYTE , , D7),
/* LOCATION */
struct Library *, CyberGfxBase, 21, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("WritePixelArray");
AROS_LIBFUNC_EXIT
} /* WritePixelArray */

55
rom/cgfx/writergbpixel.c Normal file
View File

@ -0,0 +1,55 @@
/*
(C) 1997 AROS - The Amiga Research OS
$Id$
Desc:
Lang: english
*/
#include "cybergraphics_intern.h"
/*****************************************************************************
NAME */
#include <clib/cybergraphics_protos.h>
AROS_LH4(LONG, WriteRGBPixel,
/* SYNOPSIS */
AROS_LHA(struct RastPort *, , A1),
AROS_LHA(UWORD , , D0),
AROS_LHA(UWORD , , D1),
AROS_LHA(ULONG , , D2),
/* LOCATION */
struct Library *, CyberGfxBase, 19, Cybergraphics)
/* FUNCTION
INPUTS
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY
27-11-96 digulla automatically created from
cybergraphics_lib.fd and clib/cybergraphics_protos.h
*****************************************************************************/
{
AROS_LIBFUNC_INIT
AROS_LIBBASE_EXT_DECL(struct Library *,CyberGfxBase)
extern void aros_print_not_implemented (char *);
aros_print_not_implemented ("WriteRGBPixel");
AROS_LIBFUNC_EXIT
} /* WriteRGBPixel */