3D-Renderer-omeka-module/Module.php

37 lines
610 B
PHP

<?php
namespace Render3D;
use Omeka\Module\AbstractModule;
use Laminas\EventManager\SharedEventManagerInterface;
use Laminas\Mvc\MvcEvent;
class Module extends AbstractModule
{
const NAMESPACE = __NAMESPACE__;
const MODEL_TYPES = [
'gltf' => 'gLTF',
/*
'obj' => 'OBJ',
'obj+mtl' => 'OBJ + MTL',
'json' => 'JSON',
'fbx' => 'FBX',
'stl' => 'STL',
'dae' => 'Collada .dae',
'ply' => 'PLY',
*/
];
const MODEL_WIDTH = [
'50' => '50 %',
'75' => '75 %',
'100' => '100 %',
];
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
}