| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #define O3D_PLUGIN_MAC_PLUGIN_MAC_H_ | 34 #define O3D_PLUGIN_MAC_PLUGIN_MAC_H_ |
| 35 | 35 |
| 36 #include <CoreFoundation/CoreFoundation.h> | 36 #include <CoreFoundation/CoreFoundation.h> |
| 37 #include <npupp.h> | 37 #include <npupp.h> |
| 38 #include <AGL/agl.h> | 38 #include <AGL/agl.h> |
| 39 #include <vector> | 39 #include <vector> |
| 40 | 40 |
| 41 // Just for o3d::Event::Button at the moment. | 41 // Just for o3d::Event::Button at the moment. |
| 42 #include "core/cross/event.h" | 42 #include "core/cross/event.h" |
| 43 | 43 |
| 44 namespace o3d { |
| 44 | 45 |
| 45 // RenderTimer maintains an animation timer (nominally running at 60fps) | 46 // RenderTimer maintains an animation timer (nominally running at 60fps) |
| 46 // | 47 // |
| 47 // Keeps track of the current NPP instances running in the browser and then | 48 // Keeps track of the current NPP instances running in the browser and then |
| 48 // renders each one during each timer callback. | 49 // renders each one during each timer callback. |
| 49 class RenderTimer { | 50 class RenderTimer { |
| 50 public: | 51 public: |
| 51 RenderTimer() {} | 52 RenderTimer() {} |
| 52 | 53 |
| 53 void Start(); | 54 void Start(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 bool HandleMacEvent(EventRecord* the_event, NPP instance); | 95 bool HandleMacEvent(EventRecord* the_event, NPP instance); |
| 95 | 96 |
| 96 o3d::Event::Button MacOSMouseButtonNumberToO3DButton(int inButton); | 97 o3d::Event::Button MacOSMouseButtonNumberToO3DButton(int inButton); |
| 97 | 98 |
| 98 bool GetBrowserVersionInfo(int *returned_major, | 99 bool GetBrowserVersionInfo(int *returned_major, |
| 99 int *returned_minor, | 100 int *returned_minor, |
| 100 int *returned_bugfix); | 101 int *returned_bugfix); |
| 101 | 102 |
| 102 bool UseSoftwareRenderer(); | 103 bool UseSoftwareRenderer(); |
| 103 | 104 |
| 105 } // namespace o3d |
| 106 |
| 104 #endif // O3D_PLUGIN_MAC_PLUGIN_MAC_H_ | 107 #endif // O3D_PLUGIN_MAC_PLUGIN_MAC_H_ |
| OLD | NEW |