Jump to content

"LEO::Engine" has no member "SetAbstractPath" ...


Recommended Posts

Posted

There is no SetAbstractPath in LEO. You should use LEO::Engine::AddAbstractPath (which internally calls RegisterAbstractPath)

//	====================================================================
//	This file was generated by LEBuilder
//	http://leadwerks.com/werkspace
//	====================================================================

#include "stdafx.h"
#include "leo.h"
#include <string>
#include <iostream>

using namespace std;
using namespace LEO;

const int 	ScreenWidth = 800;
const int 	ScreenHeight = 600;
const char*	MediaDir = "./cells";
const char*	AppTitle = "cells";

void ErrOut( const string& message ) { cerr << message << endl; }

//	--------------------------------------------
int main( int argc, char* argv[] )
{
// Set graphics mode
Engine engine(AppTitle,ScreenWidth,ScreenHeight);
if( !engine.IsValid() )
{
	ErrOut( "Failed to set graphics mode.");
	return 1;
}
engine.AddAbstractPath( MediaDir ); // <==================== HERE =====================

// Create framework object and set it to a global object so other scripts can access it
Framework fw;
if( NULL == fw )
{
	ErrOut( "Failed to initialize engine." );
	return 1;
}

// Set Lua framework object
engine.SetObject( "fw", fw );

// Set Lua framework variable
Lua lua;
lua.PushObject( fw );
lua.SetGlobal( "fw" );
lua.Pop( 1 );
...
...
...
...
...

Roland Strålberg
Website: https://rstralberg.com

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...