This commit is contained in:
Henrik Rydgard committed 2012-10-31 20:42:43 +01:00
1 parent 91d086e359
commit 33b82fa077
8 files changed
+15 -6

No files matched your search

+2 -1
View File
@@ -2,7 +2,8 @@
#include <algorithm>
#include "block_allocator.h"
block_allocator::block_allocator(size_t blocksize): m_head(0), m_blocksize(blocksize)
block_allocator::block_allocator(size_t blocksize)
: m_head(0), m_blocksize(blocksize)
{
}
+1
View File
@@ -9,6 +9,7 @@
#include <set>
#include <stdio.h>
#include <sys/stat.h>
#include <ctype.h>
#include "base/logging.h"
#include "base/basictypes.h"
-2
View File
@@ -16,6 +16,4 @@ namespace GestureDetector
// x/ydelta is (smoothed?) difference from current location to the position from the last frame.
// Returns true if button/finger is down, for convenience.
bool dragDelta(int finger, float *xdelta, float *ydelta);
};
+3 -1
View File
@@ -27,7 +27,7 @@ enum {
#define MAX_POINTERS 8
#endif
// Agglomeration of all possible inputs, and automatically computed
// Collection of all possible inputs, and automatically computed
// deltas where applicable.
struct InputState {
// Lock this whenever you access the data in this struct.
@@ -66,6 +66,8 @@ struct InputState {
bool accelerometer_valid;
Vec3 acc;
// TODO: Add key arrays
private:
DISALLOW_COPY_AND_ASSIGN(InputState);
};
-1
View File
@@ -231,7 +231,6 @@ void Matrix4x4::setOrtho(float left, float right, float bottom, float top, float
wz = -(far + near) / (far - near);
}
// This is a D3D style matrix.
void Matrix4x4::setProjectionInf(const float near_plane, const float fov_horiz, const float aspect) {
empty();
float f = fov_horiz*0.5f;
+2
View File
@@ -227,6 +227,7 @@
<ClInclude Include="input\input_state.h" />
<ClInclude Include="json\json_writer.h" />
<ClInclude Include="math\compression.h" />
<ClInclude Include="math\curves.h" />
<ClInclude Include="math\lin\aabb.h" />
<ClInclude Include="math\lin\matrix4x4.h" />
<ClInclude Include="math\lin\plane.h" />
@@ -306,6 +307,7 @@
<ClCompile Include="image\zim_save.cpp" />
<ClCompile Include="input\gesture_detector.cpp" />
<ClCompile Include="json\json_writer.cpp" />
<ClCompile Include="math\curves.cpp" />
<ClCompile Include="math\lin\aabb.cpp" />
<ClCompile Include="math\lin\matrix4x4.cpp" />
<ClCompile Include="math\lin\plane.cpp" />
+6
View File
@@ -221,6 +221,9 @@
<ClInclude Include="ui\virtual_input.h">
<Filter>ui</Filter>
</ClInclude>
<ClInclude Include="math\curves.h">
<Filter>math</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="gfx\gl_debug_log.cpp">
@@ -391,6 +394,9 @@
<ClCompile Include="ui\virtual_input.cpp">
<Filter>ui</Filter>
</ClCompile>
<ClCompile Include="math\curves.cpp">
<Filter>math</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<Filter Include="gfx">
+1 -1
View File
@@ -21,10 +21,10 @@ void ScreenManager::switchScreen(Screen *screen) {
while (dialog_.size())
pop();
}
// TODO: is this still true?
// Note that if a dialog is found, this will be a silent background switch that
// will only become apparent if the dialog is closed. The previous screen will stick around
// until that switch.
// TODO: is this still true?
if (nextScreen_ != 0) {
FLOG("WTF? Already had a nextScreen_");
}