Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SetRasterCallback on C# / BeefLang
#7
In BeefLang, it doesn't work, that's weird

Code:
using Tilengine;
using System;
using TLN.Data;
using TLN.Enums;
using TLN.Types;

namespace TestTilengine
{
class RasterEffects
{
private String rasterMode ~ delete _;
private int layerID;



public this(String rasterMode, int layerID)
{
this.rasterMode = new String(rasterMode);
this.rasterMode.ToLower();
this.layerID = layerID;
}

// VideoCallback callback = new VideoCallback(MyRasterEffects);
TLN.VideoCallback callback = new TLN.VideoCallback(myRasterEffect);
TLN.SetRasterCallback(callback);


public static void myRasterEffect(int line);
{
Tilengine.TLN.SetBGColor((uint8) line, (uint8) line, (uint8) line);
}

}
}


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
SetRasterCallback on C# / BeefLang - by System64 - 12-17-2020, 04:08 AM
RE: SetRasterCallback on C# / BeefLang - by System64 - 12-17-2020, 08:37 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)