<commit_before>library glf_asset_pack;

import 'dart:async';
import 'dart:html';
import 'dart:web_gl' as wgl;
import 'dart:typed_data';
import 'package:asset_pack/asset_pack.dart';
import 'glf.dart';


/// Register the glf loader with the asset_pack library.
/// asset manager. After calling this function, the asset manager
/// will be able to load :
/// * type 'shaderProgram' => ProgramContext
/// * type 'tex2d' => Texture
/// * type 'filter2d' => Filter2D
// TODO meshes, glTF
void registerGlfWithAssetManager(wgl.RenderingContext gl, AssetManager assetManager, {importImgToTexture(RenderingContext, Texture, ImageElement) : storeImageToTexture}) {
  //assetManager.loaders['mesh'] = new TextLoader();
  assetManager.loaders['tex2d'] = new ImageLoader();
  //assetManager.loaders['texCube'] = new _ImagePackLoader();
  //assetManager.loaders['vertexShader'] = new TextLoader();
  //assetManager.loaders['fragmentShader'] = new TextLoader();
  assetManager.loaders['filter2d'] = new TextLoader();
  assetManager.loaders['shaderProgram'] = new ProgramContextLoader();<commit_msg>clean import<commit_after>library glf_asset_pack;

import 'dart:async';
import 'dart:html';
import 'dart:web_gl' as wgl;
import 'package:asset_pack/asset_pack.dart';
import 'glf.dart';


/// Register the glf loader with the asset_pack library.
/// asset manager. After calling this function, the asset manager
/// will be able to load :
/// * type 'shaderProgram' => ProgramContext
/// * type 'tex2d' => Texture
/// * type 'filter2d' => Filter2D
// TODO meshes, glTF
void registerGlfWithAssetManager(wgl.RenderingContext gl, AssetManager assetManager, {importImgToTexture(RenderingContext, Texture, ImageElement) : storeImageToTexture}) {
  //assetManager.loaders['mesh'] = new TextLoader();
  assetManager.loaders['tex2d'] = new ImageLoader();
  //assetManager.loaders['texCube'] = new _ImagePackLoader();
  //assetManager.loaders['vertexShader'] = new TextLoader();
  //assetManager.loaders['fragmentShader'] = new TextLoader();
  assetManager.loaders['filter2d'] = new TextLoader();
  assetManager.loaders['shaderProgram'] = new ProgramContextLoader();
{'fraction_non_alphanumeric': 0.14225549836218998, 'fraction_numerical': 0.004679457182966776, 'mean_word_length': 5.68125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2323714', 'n_tokens_mistral': 649, 'n_tokens_neox': 652, 'n_words': 158}