Browse Source

More header cleanup.

legacy
Sam Hocevar 5 years ago
parent
commit
85007bd019
5 changed files with 7 additions and 11 deletions
  1. +1
    -0
      doc/tutorial/16_movie.cpp
  2. +2
    -1
      src/image/movie.cpp
  3. +0
    -2
      src/lol/extras.h
  4. +1
    -4
      src/lol/image/all.h
  5. +3
    -4
      src/scene.h

+ 1
- 0
doc/tutorial/16_movie.cpp View File

@@ -15,6 +15,7 @@
#endif #endif


#include <lol/engine.h> #include <lol/engine.h>
#include <lol/image/movie.h>
#include "loldebug.h" #include "loldebug.h"


int main(int argc, char **argv) int main(int argc, char **argv)


+ 2
- 1
src/image/movie.cpp View File

@@ -1,7 +1,7 @@
// //
// Lol Engine // Lol Engine
// //
// Copyright © 2010—2018 Sam Hocevar <sam@hocevar.net>
// Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
// //
// Lol Engine is free software. It comes without any warranty, to // Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it // the extent permitted by applicable law. You can redistribute it
@@ -11,6 +11,7 @@
// //


#include <lol/engine-internal.h> #include <lol/engine-internal.h>
#include <lol/image/movie.h>


#if LOL_USE_FFMPEG #if LOL_USE_FFMPEG
extern "C" extern "C"


+ 0
- 2
src/lol/extras.h View File

@@ -41,8 +41,6 @@
#include <lol/../gradient.h> #include <lol/../gradient.h>
#include <lol/../sprite.h> #include <lol/../sprite.h>
#include <lol/../text.h> #include <lol/../text.h>
#include <lol/../textureimage.h>
#include <lol/../tileset.h>


// UI // UI
#include <lol/../ui/input.h> #include <lol/../ui/input.h>


+ 1
- 4
src/lol/image/all.h View File

@@ -1,7 +1,7 @@
// //
// Lol Engine // Lol Engine
// //
// Copyright © 2010—2015 Sam Hocevar <sam@hocevar.net>
// Copyright © 2010—2020 Sam Hocevar <sam@hocevar.net>
// //
// Lol Engine is free software. It comes without any warranty, to // Lol Engine is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it // the extent permitted by applicable law. You can redistribute it
@@ -13,8 +13,5 @@
#pragma once #pragma once


#include <lol/image/pixel.h> #include <lol/image/pixel.h>
#include <lol/image/color.h>
#include <lol/image/image.h>
#include <lol/image/resource.h> #include <lol/image/resource.h>
#include <lol/image/movie.h>



+ 3
- 4
src/scene.h View File

@@ -21,7 +21,6 @@
#include <memory> #include <memory>
#include <stdint.h> #include <stdint.h>


#include "tileset.h"
#include "light.h" #include "light.h"
#include "camera.h" #include "camera.h"
#include "mesh/mesh.h" #include "mesh/mesh.h"
@@ -55,7 +54,7 @@ private:
struct Tile struct Tile
{ {
mat4 m_model; mat4 m_model;
TileSet *m_tileset;
class TileSet *m_tileset;
int m_id; int m_id;
}; };


@@ -241,8 +240,8 @@ public:


/* FIXME: this should be deprecated -- it doesn't really match /* FIXME: this should be deprecated -- it doesn't really match
* the architecture we want to build */ * the architecture we want to build */
void AddTile(TileSet *tileset, int id, vec3 pos, vec2 scale, float radians);
void AddTile(TileSet *tileset, int id, mat4 model);
void AddTile(class TileSet *tileset, int id, vec3 pos, vec2 scale, float radians);
void AddTile(class TileSet *tileset, int id, mat4 model);


public: public:
void AddLine(vec3 a, vec3 b, vec4 color); void AddLine(vec3 a, vec3 b, vec4 color);


Loading…
Cancel
Save