Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yagl Pong...Why doesn't it work.
#6
you mean the first bit? That's a custom header to shorten the amount of typing i have to do

Take this bit :

Code:
'The Main Libary
#include "yaglwrapper.bi"

'Screen/Window Commands
#Define Yagl_CLS(c) YaglGfxDevice_clear(c)
#Define Yagl_Screen(X,Y,Bit,Full) YaglGfxDevice_setScreenMode(X,Y,Bit,Full)    
#define Yagl_SetWindowTitle(Title) YaglGfxDevice_setWindowTitle(title)    
#define Yagl_SwapBuffers YaglGfxDevice_swapBuffers    
#define Yagl_WindowCloseButton YaglGfxDevice_wasWindowCloseButtonPressed

'KeyBoard commands
#define Yagl_GetKey YaglKeyboard_getKey    
#define Yagl_KeyPress(ScanCode) YaglKeyboard_isKeyPressed(ScanCode)

'Mouse Commands
#define Yagl_MouseLeft YaglMouse_isLeftButtonPressed    
#define Yagl_MouseRight YaglMouse_isRightButtonPressed    
#define Yagl_MouseMiddle YaglMouse_isMiddleButtonPressed  
#define Yagl_MouseX YaglMouse_getX
#define Yagl_MouseY YaglMouse_getY
#define Yagl_MouseZ YaglMouse_getZ
#define Yagl_SetMouse(x,y) YaglMouse_setPosition(x,y)
#define Yagl_HideMouse YaglGfxDevice_hideMouseCursor    
#define Yagl_ShowMouse YaglGfxDevice_ShowMouseCursor  

' Font Commands
#define Yagl_CreateFont YaglGfxDevice_createFont
#define Yagl_LoadFont(font, filename) YaglGfxFont_loadFont(font, filename)
#define Yagl_FontSize(font,size) YaglGfxFont_setSize(font, size)
#define Yagl_Print(text,x,y,colour,font,blend_factor) YaglGfxDevice_printAt(text,x,y,colour,font,blend_factor)
#define Yagl_DestroyFont(font) YaglGfxDevice_destroyFont(font)
#define Yagl_DestroyAllFonts YaglGfxDevice_destroyAllFonts

'  Drawing Commands
#define yagl_Line(x1,y1,x2,y2,color,blendfactor) YaglGfxDevice_line(x1,y1,x2,y2,color,blendfactor)    
#define Yagl_Box(x1,y1,x2,y2,color,blendfactor) YaglGfxDevice_Box(x1,y1,x2,y2,color,blendfactor)        
#define Yagl_SolidBox(x1,y1,x2,y2,color,blendfactor) YaglGfxDevice_SolidBox(x1,y1,x2,y2,color,blendfactor)      
#define Yagl_ClippingRegion(clip_min_x,clip_min_y,clip_max_x,clip_max_y) YaglGfxDevice_setClippingRegion(clip_min_x,clip_min_y,clip_max_x,clip_max_y)    

'Bitmaps and blitting
#define Yagl_CreateSurface YaglGfxDevice_createSurface()
#Define Yagl_LoadSurfaceFile(filename) YaglGfxSurface_loadFile(filename)
#define Yagl_LoadSurfaceMemory(someSurf,aSurf,x,y,FORMAT) YaglGfxSurface_loadFromMemory(someSurf,aSurf,x,y,FORMAT)
#define Yagl_Blit(x,y,surface,BlitMODE,blend_factor) YaglGfxDevice_blit(x,y,surface,BlitMODE,blend_factor)
#define Yagl_Blit2(x,y,src_min_x,src_min_y,src_max_x,src_max_y, surface, BLIT_MODE,blend_factor ) YaglGfxDevice_blit(x,y,src_min_x,src_min_y,src_max_x,src_max_y, surface, BLIT_MODE,blend_factor )
#define Yagl_BlitScaled YaglGfxDevice_blitScaled(x,y,scale_x,scale_y,surface,BLIT_MODE,blend_factor)
#define Yagl_BlitScaled2(x,y,scale_x,scale_y,src_min_x,src_min_y,src_max_x,src_max_y,surface,BLIT_MODE,blend_factor) YaglGfxDevice_blitScaled(x,y,scale_x,scale_y,src_min_x,src_min_y,src_max_x,src_max_y,surface,BLIT_MODE,blend_factor)
#define Yagl_BlitRotated(x,y,angle,surface,BLIT_MODE,blend_factor) YaglGfxDevice_blitRotated(x,y,angle,surface,BLIT_MODE,blend_factor)
#define Yagl_BlitRotated2(x,y,angle,src_min_x,src_min_y,src_max_x,src_max_y,surface,BLIT_MODE,blend_factor) YaglGfxDevice_blitRotated(x,y,angle,src_min_x,src_min_y,src_max_x,src_max_y,surface,BLIT_MODE,blend_factor)
#define Yagl_BlitRotatedScale(x,y,angle,scale_x,scale_y,surface,BLIT_MODE,blend_factor) YaglGfxDevice_blitRotatedScaled(x,y,angle,scale_x,scale_y,surface,BLIT_MODE,blend_factor)
#define Yagl_BlitRotatedScale2(x,y,angle,scale_x,scale_y,src_min_x,src_min_y,src_max_x,src_max_y,surface,BLIT_MODE,blend_factor) YaglGfxDevice_blitRotatedScaled(x,y,angle,scale_x,scale_y,src_min_x,src_min_y,src_max_x,src_max_y,surface,BLIT_MODE,blend_factor)
#define Yagl_DestroySurface(surface) YaglGfxDevice_destroySurface(surface)
#define Yagl_DestroyAllSurfaces YaglGfxDevice_destroyAllSurfaces()

And replace it with

Code:
#include "yaglCustom.bi"
url=http://www.sloganizer.net/en/][Image: style4,TheDarkJay.png][/url]
Reply


Messages In This Thread
Yagl Pong...Why doesn't it work. - by TheDarkJay - 01-14-2006, 07:59 PM
Yagl Pong...Why doesn't it work. - by marzecTM - 01-14-2006, 08:57 PM
Yagl Pong...Why doesn't it work. - by TheDarkJay - 01-15-2006, 03:06 PM
Yagl Pong...Why doesn't it work. - by TheDarkJay - 01-22-2006, 08:36 PM
Yagl Pong...Why doesn't it work. - by Anonymous - 01-22-2006, 09:04 PM
Yagl Pong...Why doesn't it work. - by TheDarkJay - 01-22-2006, 09:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)